diff --git a/.github/workflows/pypi-upload.yml b/.github/workflows/pypi-upload.yml new file mode 100644 index 00000000000..cd63bbb6818 --- /dev/null +++ b/.github/workflows/pypi-upload.yml @@ -0,0 +1,22 @@ +name: PyPI upload + +on: workflow_dispatch + +jobs: + pypi-publish: + name: upload release to PyPI + runs-on: ubuntu-latest + environment: release + permissions: + id-token: write + steps: + - uses: actions/checkout@v4 + - name: Install dependencies + run: | + sudo apt-get update + sudo apt-get install gettext + - name: Build package distributions + run: | + python3 setup.py sdist bdist_wheel + - name: Publish package distributions to PyPI + uses: pypa/gh-action-pypi-publish@release/v1