Skip to content

Create release tags from Actions and reuse saved drafts - #7

Merged
spaniakos merged 1 commit into
masterfrom
fix/web-release-drafts
Oct 15, 2026
Merged

spaniakos merged 1 commit into
masterfrom
fix/web-release-drafts

Conversation

@spaniakos

@spaniakos spaniakos commented Oct 15, 2026 •

Copy link
Copy Markdown
Owner

A maintainer can save v2.0.0 as a draft through github.com, but the previous manual workflow only built previews and the tag workflow attempted to create a second release. Add a website-only path: Actions → Release packages → master → mode=create-draft → tag=v2.0.0.

The workflow validates tag/version and the finalized date, runs the full package matrix and checksum verification, generates provenance, then creates the tag at the exact built commit and uploads assets. Saved draft titles and release-note bodies are preserved; authored notes are used only when creating a new draft. CLI tag pushes remain supported. Preview stays the default with no publishing permissions.

Existing tags are never moved; annotated tags resolve to their commit. Published releases, duplicate drafts, wrong draft targets and non-404 API errors fail explicitly. Retrying uploads replaces matching filenames only in an unpublished draft. Manual release requests are limited to master. CLI/manual runs share per-tag concurrency; GITHUB_TOKEN-created tags are completed in the current run rather than relying on another push trigger.

Validation: all 17 hosted CI jobs passed, including native package install/removal and release-preview assembly: https://github.com/spaniakos/update-apt-system/actions/runs/38796731009 . Wiki preview also passed: https://github.com/spaniakos/update-apt-system/actions/runs/38796731115 . All 49 tests pass with modern Bash and Bash 3.2; ShellCheck, actionlint, syntax/version/pin checks and 16 Wiki files validate. Tests cover draft preservation, new drafts, retries, conflicting/annotated tags, published releases, API errors, input validation and explicit HTTP methods.

The existing v2.0.0 draft targets master and remains unchanged. No real tag or release mutation was performed during validation. After merge and successful master CI, run create-draft with tag v2.0.0. That first live run exercises tag creation, provenance and draft upload; review the results and publish manually afterward.

@spaniakos spaniakos self-assigned this Oct 15, 2026
@spaniakos
spaniakos merged commit 8dd4a3d into master Oct 15, 2026
19 checks passed
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