From b878ab351b1159c725306f70b90909a8491bcef3 Mon Sep 17 00:00:00 2001 From: William Bergamin Date: Tue, 4 Nov 2025 15:47:16 -0500 Subject: [PATCH] chore: fix release workflow --- .github/workflows/pypi-release.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pypi-release.yml b/.github/workflows/pypi-release.yml index 428efa9..0a4d865 100644 --- a/.github/workflows/pypi-release.yml +++ b/.github/workflows/pypi-release.yml @@ -21,6 +21,7 @@ jobs: steps: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 with: + ref: ${{ github.event.release.tag_name || github.ref }} persist-credentials: false - name: Set up Python @@ -42,7 +43,7 @@ jobs: runs-on: ubuntu-latest needs: - release-build - if: ${{ github.event_name == 'workflow_dispatch' && !github.event.inputs.dry_run }} + if: github.event_name == 'workflow_dispatch' && !github.event.inputs.dry_run environment: name: testpypi permissions: @@ -66,7 +67,7 @@ jobs: runs-on: ubuntu-latest needs: - release-build - if: ${{ github.event_name == 'release' }} + if: github.event_name == 'release' environment: name: pypi permissions: