Skip to content

Commit 1945354

Browse files
committed
Only run the publish to pypi build on tags
Otherwise this build "fails" on main leading to a bunch of annoying failed actions checks.
1 parent 94e42df commit 1945354

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
@@ -66,7 +66,7 @@ jobs:
6666

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

0 commit comments

Comments
 (0)