refactor(ci): switch publish to workflow_dispatch#249
Conversation
Tag-push trigger created orphaned tags when CI failed. Now: - workflow_dispatch with version input + dry-run toggle - preflight verifies version matches pyproject.toml - tag + GitHub Release created only after PyPI confirms
- Scope contents:write to publish job only - Pin actions/checkout to commit SHA - Use exact awk match for tag check (dots aren't wildcards)
|
Caution Review failedPull request was closed or merged during review 📝 WalkthroughWalkthroughThe publish workflow transitions from automatic tag-triggered releases to manual dispatch with explicit version input and preflight validation. A new ChangesPublish Workflow Refactoring
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested labels
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
⚔️ Resolve merge conflicts
Comment |
Summary
workflow_dispatchwith version input and dry-run togglevprefix, verifies version matchespyproject.toml, checks tag doesn't existcontents:writescoped to publish job only,actions/checkoutpinned to SHA0.16.1andv0.16.1as inputTest plan
gh workflow run publish.yml -f version=0.16.1 -f dry-run=truegh workflow run publish.yml -f version=0.16.1Summary by CodeRabbit