Skip to content

Fix publish job: cd to /tmp broke gh release upload - #48

Merged
5uck1ess merged 1 commit into
mainfrom
fix/release-checksum-cd
Apr 10, 2026
Merged

Fix publish job: cd to /tmp broke gh release upload#48
5uck1ess merged 1 commit into
mainfrom
fix/release-checksum-cd

Conversation

@5uck1ess

Copy link
Copy Markdown
Owner

Summary

The publish job's cd /tmp/release-assets changed the working directory away from the git checkout. gh release upload needs git context to find the repo. The sha256sum generation and upload happened in the right order, but gh couldn't find .git.

Fix: run sha256sum in a subshell (cd ... && sha256sum) and keep gh release upload in the checkout directory with a full path to the checksums file.

Test plan

  • Merge and verify release workflow completes successfully
  • Verify checksums.txt appears in release assets
  • Verify release is published (not stuck as draft)

Use subshell for sha256sum generation and keep gh commands in the
checkout directory where git context is available.
@5uck1ess
5uck1ess merged commit 0dde3de into main Apr 10, 2026
3 checks passed
@5uck1ess
5uck1ess deleted the fix/release-checksum-cd branch April 10, 2026 00:46
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