fix(ci): switch release trigger to push on main for PyPI environment compatibility#16
Merged
fix(ci): switch release trigger to push on main for PyPI environment compatibility#16
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adjusts the GitHub Actions release workflow so PyPI publishing can run under refs/heads/main (compatible with protected PyPI environments), and updates the changelog accordingly.
Changes:
- Switched the release workflow trigger from
pull_request: closedtopushonmainand removed PR-only guards/checkout refs. - Ensured release/build/publish jobs are gated only by the computed “version changed” output and aligned artifact action versions.
- Added a 1.3.1 changelog entry and amended 1.3.0 with a “Fixed” section.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
CHANGELOG.md |
Adds 1.3.1 notes and amends 1.3.0, describing workflow/test-related fixes. |
.github/workflows/release.yml |
Updates workflow trigger and job conditions to run releases from main pushes and publish via the protected PyPI environment. |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Release workflow and test isolation fixes for PyPI publishing.
pull_request: closedtopush: branches: [main]so the workflow runs underrefs/heads/mainand satisfies the PyPI environment deployment branch protection rule.buildjob checkout missingfetch-depth: 0, required bypoetry-dynamic-versioningto read git tags.download-artifactversion mismatch (v5→v7) to align withupload-artifact@v7.release,build,publish.Related Issues
N/A
Validation
Release Impact
fix:(patch) — workflow and artifact version fixes