Skip to content

Commit 44e9299

Browse files
authored
Merge pull request #33 from asmeurer/publish-workflow-fix
Don't try to run the publish step unless the commit is a tag
2 parents 7aaeda2 + bb1090b commit 44e9299

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/publish-package.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ jobs:
6969

7070
publish:
7171
name: Publish Python distribution to (Test)PyPI
72-
if: github.event_name != 'pull_request' && github.repository == 'data-apis/array-api-strict'
72+
if: github.event_name != 'pull_request' && github.repository == 'data-apis/array-api-strict' && github.ref_type == 'tag'
7373
needs: build
7474
runs-on: ubuntu-latest
7575
# Mandatory for publishing with a trusted publisher

0 commit comments

Comments
 (0)