Skip to content

ci(publish): switch trigger from pull_request to push#260

Merged
darvid merged 1 commit intomainfrom
ci/fix-publish-trigger
Mar 19, 2026
Merged

ci(publish): switch trigger from pull_request to push#260
darvid merged 1 commit intomainfrom
ci/fix-publish-trigger

Conversation

@darvid
Copy link
Owner

@darvid darvid commented Mar 18, 2026

Summary

  • The pull_request event sets GITHUB_REF to refs/pull/N/merge, which doesn't match the release environment's branch deployment policy (main, create-pull-request/patch), causing the publish job to be silently rejected with no logs
  • Switches to push trigger on main so GITHUB_REF is refs/heads/main, satisfying the branch policy
  • Gates the build job on commit messages starting with Release to avoid unnecessary full matrix builds on every push
  • Removes PR-specific env vars and checks from release_check step

Context

This broke the v0.8.2 publish (run #23253907044) and the v0.8.1 publish (run #21916548701). After merging, workflow_dispatch can be used to publish v0.8.2.

Test plan

  • Merge this PR (push to main with ci(...) prefix should NOT trigger publish builds)
  • Run gh workflow run publish.yml to trigger v0.8.2 publish via workflow_dispatch
  • Approve the release environment deployment
  • Verify v0.8.2 lands on PyPI and GitHub Releases

The pull_request event sets GITHUB_REF to refs/pull/N/merge,
which doesn't match the release environment's branch policy
(main, create-pull-request/patch), causing the publish job
to be rejected before execution with no logs.

Switching to push trigger on main so GITHUB_REF is
refs/heads/main, which satisfies the branch policy.

- Replace pull_request closed trigger with push to main
- Gate build job on commit message starting with 'Release '
- Remove PR-specific env vars and checks from release_check
@darvid darvid merged commit 7fcecdc into main Mar 19, 2026
13 checks passed
@darvid darvid deleted the ci/fix-publish-trigger branch March 19, 2026 01:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant