Skip to content

Commit be2aec0

Browse files
authored
Merge pull request #118 from asmeurer/publish-tags-only
Only run the publish to pypi build on tags
2 parents 189973f + 1945354 commit be2aec0

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)