Skip to content

Commit bb1090b

Browse files
committed
Don't try to run the publish step unless the commit is a tag
This prevents this workflow from failing on every commit in main.
1 parent 7aaeda2 commit bb1090b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/publish-package.yml

Lines changed: 1 addition & 1 deletion
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)