Skip to content

Fix release assets upload on version PRs - #249

Merged
pdelsante merged 1 commit into
developfrom
fix/release-assets-tag
Oct 28, 2026
Merged

pdelsante merged 1 commit into
developfrom
fix/release-assets-tag

Conversation

@pdelsante

Copy link
Copy Markdown
Member

Goal

Make _release_and_tag.yml attach the sdist and wheel to the release it creates when append_to_release: true.

Why

The workflow runs on pull_request: closed, where github.ref_name is <n>/merge: "Update release with assets" fails with "GitHub Releases requires a tag" (certego/django-fernet 0.1.1). pypanoptikon already patches its subtree copy.

How

  • Pass tag_name and build the asset globs from github.event.pull_request.title, the version already checked by "Check Tag".
  • Plan at .claude/plans/fix-release-assets-tag/plan.md.

Out of scope

  • Other release workflow changes (e.g. the Node 20 deprecation warning of softprops/action-gh-release@v2).

🤖 Generated with Claude Code

On pull_request events github.ref_name is "<n>/merge", so the upload step
had no tag and failed after the release was created (seen on
certego/django-fernet 0.1.1). pypanoptikon already carries this patch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@pdelsante
pdelsante marked this pull request as ready for review October 28, 2026 11:39
@pdelsante
pdelsante merged commit f5879f0 into develop Oct 28, 2026
4 checks passed
@pdelsante
pdelsante deleted the fix/release-assets-tag branch October 28, 2026 11:40
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