Skip to content

Commit fc586cc

Browse files
chore: fix release workflow (#73)
1 parent 57c5e39 commit fc586cc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/pypi-release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121
steps:
2222
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
2323
with:
24+
ref: ${{ github.event.release.tag_name || github.ref }}
2425
persist-credentials: false
2526

2627
- name: Set up Python
@@ -42,7 +43,7 @@ jobs:
4243
runs-on: ubuntu-latest
4344
needs:
4445
- release-build
45-
if: ${{ github.event_name == 'workflow_dispatch' && !github.event.inputs.dry_run }}
46+
if: github.event_name == 'workflow_dispatch' && !github.event.inputs.dry_run
4647
environment:
4748
name: testpypi
4849
permissions:
@@ -66,7 +67,7 @@ jobs:
6667
runs-on: ubuntu-latest
6768
needs:
6869
- release-build
69-
if: ${{ github.event_name == 'release' }}
70+
if: github.event_name == 'release'
7071
environment:
7172
name: pypi
7273
permissions:

0 commit comments

Comments
 (0)