diff --git a/.github/workflows/pypi-publish.yml b/.github/workflows/pypi-publish.yml new file mode 100644 index 0000000..89eff23 --- /dev/null +++ b/.github/workflows/pypi-publish.yml @@ -0,0 +1,23 @@ +on: + push: + tags: + - v* +jobs: + pypi-publish: + name: Upload release to PyPI + runs-on: ubuntu-latest + environment: + name: pypi + url: https://pypi.org/p/zstd-asgi + permissions: + id-token: write # IMPORTANT: this permission is mandatory for trusted publishing + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v4 + with: + python-version: 3.8 + - run: | + python -m pip install --upgrade pip + pip install build + - run: python -m build + - uses: pypa/gh-action-pypi-publish@release/v1