From 5effa8a11c59abdd8b1ae768185fb2c8b884165a Mon Sep 17 00:00:00 2001 From: Tania Allard Date: Thu, 19 Sep 2024 17:20:34 +0100 Subject: [PATCH] Move if back to top --- .github/workflows/release.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 7e73f3cb..d5cc5db4 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -53,6 +53,7 @@ jobs: environment: release-test-pypi runs-on: ubuntu-latest needs: build-package + if: github.repository_owner == 'conda-incubator' && github.event_name == 'push' && github.ref == 'refs/heads/main' permissions: id-token: write # IMPORTANT: this permission is mandatory for trusted publishing strategy: @@ -72,7 +73,6 @@ jobs: - name: "Upload package to Test PyPI" uses: pypa/gh-action-pypi-publish@release/v1 - if: github.repository_owner == 'conda-incubator' && github.event_name == 'push' && github.ref == 'refs/heads/main' with: repository-url: https://test.pypi.org/legacy/ print-hash: true