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: