Skip to content

ci: give the release upload a repository to talk to - #9

Merged
StaticHumStudio merged 1 commit into
mainfrom
ci/fix-release-upload-repo
Aug 6, 2026
Merged

ci: give the release upload a repository to talk to#9
StaticHumStudio merged 1 commit into
mainfrom
ci/fix-release-upload-repo

Conversation

@StaticHumStudio

Copy link
Copy Markdown
Owner

The failure

The release job downloads the installer artifact and never checks the repository out. gh release upload therefore had no git remote to infer a target from, and died on failed to run git: fatal: not a git repository after every other gate had already passed. v2.0.1 published without its installer until it was attached by hand.

The fix

One line: GH_REPO: ${{ github.repository }} on the upload step, so gh is told the repository instead of guessing at it from a working tree that does not exist.

Verification

Dispatched this branch with release_tag=v2.0.1: run 31129137378.

success  Supply chain policy
success  build
success  Windows service security contract
success  Windows installed service security
success  Windows portable installation behavior
success  Ubuntu Linux security
success  Attach validated installer to release

HumWatch-Setup-v2.0.1.exe on the v2.0.1 release now shows updatedAt 2026-08-06T22:41:55Z, replacing the hand-attached copy from 21:47. No manual step.

One thing to know

That attached installer is now a rebuild from this branch (5c11a93), not from the v2.0.1 tag commit (6b37f3b). The only delta between them is this workflow's env block and a comment, so the installer payload is unaffected, but if you want the release artifact to come from the tag itself, re-dispatch with release_tag=v2.0.1 once this merges and the tag is reachable from main.

🤖 Generated with Claude Code

The release job downloads the installer artifact and never checks the
repository out, so gh had no git remote to infer the target from. Every gate
passed, the validated installer built, and the upload died on "failed to run
git: fatal: not a git repository". v2.0.1 published without its installer
until it was attached by hand.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@StaticHumStudio
StaticHumStudio merged commit d7a95cd into main Aug 6, 2026
21 checks passed
@StaticHumStudio
StaticHumStudio deleted the ci/fix-release-upload-repo branch August 6, 2026 23:12
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