ci(release): create the Forgejo release for each tag #62

Merged
jfro merged 1 commit from ci/60-forgejo-releases into main 2026-11-14 00:19:19 +00:00
Owner

What changed

A new release job, run after the images are pushed, creates (or updates on rerun) the tag's Forgejo release with the tag's git-cliff notes and a docker pull line, tested red-then-green against a fake API (C4) with precommit green (C5); it's on local branch ci/60-forgejo-releases, one signed commit, not pushed.

Red, then green

  • The release script creates the tag's Forgejo release with the tag's notes and the docker pull line, updates it on rerun, marks -rc tags as pre-releases, and fails the job on an API error (tested against a fake Forgejo API).: export PATH=$HOME/.local/bin:$PATH && eval "$(mise activate bash --shims)" && mix test test/release/publish_release_test.exs
    • fails on the base (169940c): exit 1
    • passes on the branch (18642bd): exit 0

Checks

  • mix precommit (compile with warnings as errors, format, full test suite) passes on ci/60-forgejo-releases, and both workflow files parse as YAML. (Upper Wolfjaw): export PATH=$HOME/.local/bin:$PATH && eval "$(mise activate bash --shims)" && mix precommit && python3 -c "import yaml;[yaml.safe_load(open(f)) for f in ['.forgejo/workflows/release.yml','.forgejo/workflows/ci.yml']]", exit 0
  • Re-ran the release tests (4 pass) and ran the script with a stubbed curl serving the real v1.1.0 tag annotation; it strips the header, takes the create path, and pull line and -rc handling look right. Untested: a real tag push, whether Forgejo's automatic token can write releases, curl/jq on the runner, and the PATCH path on a real server. (Prover): cd /home/peak/work/lamplighter-v1-2/lamplighter && export PATH=$HOME/.local/bin:$PATH && eval "$(mise activate bash --shims)" && mix test test/release/publish_release_test.exs, exit 0

Risks

Not run on a real tag push yet. It relies on Forgejo's automatic token (secrets.GITHUB_TOKEN) being allowed to write releases on tag pushes, and on the linux/amd64 runner having curl and jq (the merge job already uses jq). If the token can't write, the job fails with the API's error after the images are already out, and a release token secret would need swapping in.

Prover

Passed (Sonnet): Re-ran the release tests (4 pass) and ran the script with a stubbed curl serving the real v1.1.0 tag annotation; it strips the header, takes the create path, and pull line and -rc handling look right. Untested: a real tag push, whether Forgejo's automatic token can write releases, curl/jq on the runner, and the PATCH path on a real server.

Every command above was run by Fortysix's Basecamp itself, on the branch named.

## What changed A new release job, run after the images are pushed, creates (or updates on rerun) the tag's Forgejo release with the tag's git-cliff notes and a docker pull line, tested red-then-green against a fake API (C4) with precommit green (C5); it's on local branch ci/60-forgejo-releases, one signed commit, not pushed. ## Red, then green - The release script creates the tag's Forgejo release with the tag's notes and the docker pull line, updates it on rerun, marks -rc tags as pre-releases, and fails the job on an API error (tested against a fake Forgejo API).: `export PATH=$HOME/.local/bin:$PATH && eval "$(mise activate bash --shims)" && mix test test/release/publish_release_test.exs` - fails on the base (169940c): exit 1 - passes on the branch (18642bd): exit 0 ## Checks - mix precommit (compile with warnings as errors, format, full test suite) passes on ci/60-forgejo-releases, and both workflow files parse as YAML. (Upper Wolfjaw): `export PATH=$HOME/.local/bin:$PATH && eval "$(mise activate bash --shims)" && mix precommit && python3 -c "import yaml;[yaml.safe_load(open(f)) for f in ['.forgejo/workflows/release.yml','.forgejo/workflows/ci.yml']]"`, exit 0 - Re-ran the release tests (4 pass) and ran the script with a stubbed curl serving the real v1.1.0 tag annotation; it strips the header, takes the create path, and pull line and -rc handling look right. Untested: a real tag push, whether Forgejo's automatic token can write releases, curl/jq on the runner, and the PATCH path on a real server. (Prover): `cd /home/peak/work/lamplighter-v1-2/lamplighter && export PATH=$HOME/.local/bin:$PATH && eval "$(mise activate bash --shims)" && mix test test/release/publish_release_test.exs`, exit 0 ## Risks Not run on a real tag push yet. It relies on Forgejo's automatic token (secrets.GITHUB_TOKEN) being allowed to write releases on tag pushes, and on the linux/amd64 runner having curl and jq (the merge job already uses jq). If the token can't write, the job fails with the API's error after the images are already out, and a release token secret would need swapping in. ## Prover Passed (Sonnet): Re-ran the release tests (4 pass) and ran the script with a stubbed curl serving the real v1.1.0 tag annotation; it strips the header, takes the create path, and pull line and -rc handling look right. Untested: a real tag push, whether Forgejo's automatic token can write releases, curl/jq on the runner, and the PATCH path on a real server. Every command above was run by Fortysix's Basecamp itself, on the branch named.
jfro added this to the v1.2 milestone 2026-11-14 00:15:37 +00:00
ci(release): create the Forgejo release for each tag
All checks were successful
CI / test (pull_request) Successful in 1m27s
18642bdadf
The release workflow now ends with a job that creates (or, on a rerun,
updates) the Forgejo release for the pushed tag, with the notes from the
tag's annotation and the image's docker pull line. Tags with a pre-release
part become pre-releases. CI installs curl and jq so the script's test runs.

Closes #60
jfro merged commit e07248f92b into main 2026-11-14 00:19:19 +00:00
jfro deleted branch ci/60-forgejo-releases 2026-11-14 00:19:19 +00:00
Sign in to join this conversation.
No description provided.