From f3e6719497d951597c00387078a65231f5f30c85 Mon Sep 17 00:00:00 2001 From: Demetrius Kanios Date: Wed, 17 Jun 2026 12:41:12 -0700 Subject: [PATCH] Add publishing to release workflow. --- .github/workflows/release.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index db4230e..39973f5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -33,6 +33,7 @@ jobs: - name: Upload artifacts uses: actions/upload-artifact@v4 with: + name: python-dist path: dist/pumpkin_api_py* - name: Upload artifacts to release @@ -44,3 +45,21 @@ jobs: file: dist/pumpkin_api_py* overwrite: true file_glob: true + publish: + name: Publish to PyPI + needs: release + if: startsWith(github.ref, 'refs/tags/v') + runs-on: ubuntu-latest + environment: + name: pypi + url: https://pypi.org/p/pumpkin-api-py + permissions: + id-token: write + steps: + - name: Download artifacts + uses: actions/download-artifact@v4 + with: + name: python-dist + path: dist/ + - name: Publish + uses: pypa/gh-action-pypi-publish@release/v1