Skip to content

Commit 5ddc00a

Browse files
committed
.github/workflows/python.yml: Fix job conditions.
1 parent 7b2d301 commit 5ddc00a

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/python.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ on:
2020
- 'c/Make*'
2121
- 'c/*.mk'
2222
- 'c/**/*.[ch]p?p?'
23-
# Manual run
24-
workflow_dispatch:
2523
release:
2624
types:
2725
- published
26+
# Manual run
27+
workflow_dispatch:
2828

2929
concurrency:
3030
group: ${{ github.workflow }}-${{ github.ref }}
@@ -244,7 +244,7 @@ jobs:
244244
url: https://pypi.org/p/moocore
245245
permissions:
246246
id-token: write
247-
if: github.event_name == 'release' && github.event.action == 'published' && startsWith(github.ref, 'refs/tags/v')
247+
if: ${{ github.event_name == 'release' && github.event.action == 'published' && startsWith(github.ref, 'refs/tags/v') }}
248248
# or, alternatively, upload to PyPI on every tag starting with 'v' (remove on: release above to use this)
249249
# if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
250250
steps:
@@ -266,7 +266,7 @@ jobs:
266266
upload:
267267
name: Store wheels
268268
needs: wheels
269-
if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v')
269+
if: ${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v') }}
270270
runs-on: ubuntu-latest
271271
permissions:
272272
contents: write

0 commit comments

Comments
 (0)