Repository navigation
Create release tags from Actions and reuse saved drafts - #7
Merged
Merged
Conversation
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.
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.