From cac50e0bfa848979717289f823fa520915806559 Mon Sep 17 00:00:00 2001 From: Daniel Bok Date: Fri, 17 Jul 2026 13:18:29 +0800 Subject: [PATCH] change deploy condition --- .github/workflows/wc-build.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/wc-build.yml b/.github/workflows/wc-build.yml index c87b165..e2547b4 100644 --- a/.github/workflows/wc-build.yml +++ b/.github/workflows/wc-build.yml @@ -273,10 +273,7 @@ jobs: name: Deploy packages runs-on: ubuntu-latest needs: test-wheels - # Fork PRs never get an OIDC token from GitHub (ACTIONS_ID_TOKEN_REQUEST_TOKEN is - # withheld regardless of the permissions below), so trusted publishing would fail - # outright for them - skip deploy rather than let it error out. - if: inputs.target != 'none' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) + if: inputs.target != 'none' environment: name: ${{ inputs.target == 'pypi' && 'prod' || 'dev' }} permissions: