Harden release workflow correctness for tag-based builds and reruns#5
Merged
Merged
Conversation
Copilot created this pull request from a session on behalf of
gholliday
June 9, 2026 11:38
View session
There was a problem hiding this comment.
Pull request overview
Adds a dedicated GitHub Actions workflow to build and publish NativeAOT tm7 binaries for multiple OS/architectures and attach them (plus checksums) to GitHub Releases when a version tag is pushed or the workflow is manually dispatched.
Changes:
- Introduces a
Releaseworkflow triggered byv*tags andworkflow_dispatch, withcontents: writeto create/upload release assets. - Builds a cross-platform RID matrix, packages outputs as
.zip(Windows) or.tar.gz(Linux/macOS), and emits per-asset*.sha256files. - Aggregates matrix artifacts in a final job and uploads them to an existing or newly created GitHub Release.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+34
to
+35
| - uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1 | ||
|
|
Comment on lines
+113
to
+118
| set -euo pipefail | ||
| TAG='${{ steps.ver.outputs.tag }}' | ||
| PRE='${{ steps.ver.outputs.prerelease }}' | ||
| FLAGS=() | ||
| [ "$PRE" = "true" ] && FLAGS+=(--prerelease) | ||
|
|
Comment on lines
+125
to
+130
| if gh release view "$TAG" --repo "$GITHUB_REPOSITORY" >/dev/null 2>&1; then | ||
| gh release upload "$TAG" --repo "$GITHUB_REPOSITORY" --clobber dist/* | ||
| else | ||
| gh release create "$TAG" --repo "$GITHUB_REPOSITORY" \ | ||
| --title "$TAG" --notes "$NOTES" "${FLAGS[@]}" dist/* | ||
| fi |
Copilot
AI
changed the title
Add multi-target release workflow for tm7 CLI GitHub Releases
Harden release workflow correctness for tag-based builds and reruns
Jun 9, 2026
gholliday
approved these changes
Jun 9, 2026
Copilot stopped work on behalf of
gholliday due to an error
June 9, 2026 12:20
Copilot stopped work on behalf of
gholliday due to an error
June 9, 2026 12:20
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.
This updates the release workflow to address PR feedback around correctness and safety in manual/tag-driven releases. The workflow now guarantees assets are built from the intended tag and keeps release metadata consistent on reruns.
Ref/tag correctness
buildandreleasejobs.workflow_dispatchfrom building default-branch code while publishing under a different tag.Publish path clarity
dotnet publishtarget to explicit project file:src/Tm7.Cli/Tm7.Cli.csprojRelease safety guardrails
gh release create --verify-tagto avoid accidental tag creation from unintended commits.Rerun metadata consistency
name,body, andprereleasestate before uploading assets.