ci(release): auto-tag and publish aarch64+x86_64 on main #25

Merged
sirius merged 2 commits from wt/t_2c84cd13 into main 2026-09-12 04:54:09 +00:00
Owner

Summary

  • Core changes on main mint the next v*.*.* tag (patch+1; zero tags → v0.1.0), build aarch64 on the Pi runner and x86_64 on docker-amd64, and publish one release with all four assets.
  • Loop guard: dropped push: tags: — this workflow creates the tag via the API, so a tag-push hook would start a second run. workflow_dispatch still rebuilds an existing tag. dry_run (default false) builds and checksums without tagging or publishing.
  • Fail closed: no publish until both binaries exist and are non-empty; API-reported 0-byte uploads fail; a tag created by this run is deleted if a later job fails. Join an existing tag/release rather than moving it.
  • scripts/build-release-local.sh stays as the offline x86_64 fallback.

Why no tag-push trigger

The workflow owns tag creation (POST /tags with secrets.FORGEJO_TOKEN). Keeping on.push.tags would re-enter the same workflow when that tag appears. Main-push + dispatch cover production and rebuilds.

Validation

  • dry_run=true on this branch (both runners) before merge.
  • Non-dry workflow_dispatch produces v0.1.0 with four non-empty assets.
## Summary - Core changes on `main` mint the next `v*.*.*` tag (patch+1; **zero tags → v0.1.0**), build aarch64 on the Pi runner and x86_64 on `docker-amd64`, and publish one release with all four assets. - **Loop guard:** dropped `push: tags:` — this workflow creates the tag via the API, so a tag-push hook would start a second run. `workflow_dispatch` still rebuilds an existing tag. `dry_run` (default false) builds and checksums without tagging or publishing. - Fail closed: no publish until both binaries exist and are non-empty; API-reported 0-byte uploads fail; a tag created by this run is deleted if a later job fails. Join an existing tag/release rather than moving it. - `scripts/build-release-local.sh` stays as the offline x86_64 fallback. ## Why no tag-push trigger The workflow owns tag creation (`POST /tags` with `secrets.FORGEJO_TOKEN`). Keeping `on.push.tags` would re-enter the same workflow when that tag appears. Main-push + dispatch cover production and rebuilds. ## Validation - `dry_run=true` on this branch (both runners) before merge. - Non-dry `workflow_dispatch` produces `v0.1.0` with four non-empty assets.
ci(release): auto-tag and publish aarch64+x86_64 on main
Some checks failed
ci / test (pull_request) Failing after 2m16s
111b95c3ae
Drop the tag-push trigger so API-created tags cannot start a second run.
Core paths on main (or workflow_dispatch) mint the next v*.*.* tag
(v0.1.0 when none exist), build both arches in CI, and publish one
release. dry_run builds without tagging. Fail closed on empty assets.
ci(release): honor dry_run input and send JSON Content-Type
Some checks failed
ci / test (pull_request) Failing after 4m1s
58e10a0bc0
Forgejo dispatch passes string inputs; boolean dry_run stayed false and
tried to mint v0.1.0. Strip PAT newlines so Authorization does not eat
the next header (422 Empty Content-Type).
sirius merged commit 2b704ba464 into main 2026-09-12 04:54:09 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
sirius/onionwire!25
No description provided.