From 19453545daf22b35502273b57cc12e560e01b50b Mon Sep 17 00:00:00 2001 From: Aaron Meurer Date: Wed, 20 Mar 2024 14:58:09 -0600 Subject: [PATCH] Only run the publish to pypi build on tags Otherwise this build "fails" on main leading to a bunch of annoying failed actions checks. --- .github/workflows/publish-package.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-package.yml b/.github/workflows/publish-package.yml index 173bfd30..d89955f2 100644 --- a/.github/workflows/publish-package.yml +++ b/.github/workflows/publish-package.yml @@ -66,7 +66,7 @@ jobs: publish: name: Publish Python distribution to (Test)PyPI - if: github.event_name != 'pull_request' && github.repository == 'data-apis/array-api-compat' + if: github.event_name != 'pull_request' && github.repository == 'data-apis/array-api-compat' && github.ref_type == 'tag' needs: build runs-on: ubuntu-latest # Mandatory for publishing with a trusted publisher