From 307a7ec590ab9505c699a4b5ea50fadaf57320d8 Mon Sep 17 00:00:00 2001 From: Phil Krylov Date: Sun, 17 Dec 2023 13:44:08 +0100 Subject: [PATCH] Added PyPI publish workflow --- .github/workflows/pypi-publish.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/pypi-publish.yml 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