From 06c9fa236db7cb6fbd39141eb8cadb12e3a843e7 Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Fri, 27 Jun 2025 12:09:05 +0100 Subject: [PATCH] add release workflow --- .github/.workflows/release.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/.workflows/release.yml diff --git a/.github/.workflows/release.yml b/.github/.workflows/release.yml new file mode 100644 index 0000000..9a8b945 --- /dev/null +++ b/.github/.workflows/release.yml @@ -0,0 +1,26 @@ +name: Release + +on: + release: + types: [published] + push: + tags: + - 'v*.*.*' + +jobs: + pypi-publish: + name: upload release to PyPI + runs-on: ubuntu-latest + environment: pypi + permissions: + # This permission is needed for private repositories. + contents: read + # IMPORTANT: this permission is mandatory for trusted publishing + id-token: write + steps: + - uses: actions/checkout@v4 + + - uses: pdm-project/setup-pdm@v4 + + - name: Publish package distributions to PyPI + run: pdm publish