ci(release): android-release is dispatch-only; a CI-created tag cannot wake it
Neither decoupled trigger fires on Forgejo 10.0.3: a tag created by the CI (API or git push) is an Actions-user push and is not dispatched back into Actions, and reusable workflows need Forgejo >= 12. The release procedure is therefore two dispatches: release.yml, then android-release with that tag.
This commit is contained in:
parent
7435ce42f5
commit
2cf055c1e8
4 changed files with 73 additions and 50 deletions
14
README.md
14
README.md
|
|
@ -269,7 +269,10 @@ rationale, the 16 KB page-size check and the signing story are in
|
|||
Releases are **manual and batched**: no merge publishes anything, and neither
|
||||
does a tag push. Cut one when a batch of work has reached a stopping point —
|
||||
CI green on `main`, the feature set landed, no half-merged stack. Full policy
|
||||
and procedure: [`docs/RELEASING.md`](docs/RELEASING.md).
|
||||
and procedure: [`docs/RELEASING.md`](docs/RELEASING.md) — it is two dispatches,
|
||||
`release` (tag + Linux binaries) then `android-release` with that tag (APK +
|
||||
AAR): on this Forgejo neither a tag push nor `workflow_call` can wake the
|
||||
Android job.
|
||||
|
||||
Actions → release → Run workflow:
|
||||
|
||||
|
|
@ -284,9 +287,10 @@ Pass `tag` **or** `version`, not both; an unparseable version is rejected
|
|||
rather than guessed at. The workflow computes the version, creates the tag over
|
||||
the API (refusing to move an existing tag), builds aarch64 on the Pi runner and
|
||||
x86_64 on the amd64 runner, and publishes all four assets (`onionwire-<target>`
|
||||
+ `.sha256`) to one release. Creating that tag fires `android-release.yml`,
|
||||
which builds the APK + AAR and joins the same release. If a build or the
|
||||
publish fails, the run deletes the tag it created. Do not push tags by hand —
|
||||
+ `.sha256`) to one release. Then dispatch `android-release` with that tag to
|
||||
attach the APK + AAR to the same release (it has no automatic trigger on this
|
||||
Forgejo — see `docs/RELEASING.md`). If a build or the publish fails, the core
|
||||
run deletes the tag it created. Do not push tags by hand —
|
||||
`release.yml` has no tag-push trigger, so a hand-pushed tag would build
|
||||
nothing.
|
||||
|
||||
|
|
@ -301,7 +305,7 @@ FORGEJO_TOKEN=<pat> scripts/build-release-local.sh vX.Y.Z
|
|||
Workflows (Forgejo Actions, `.forgejo/workflows/`):
|
||||
|
||||
- [`.forgejo/workflows/ci.yml`](.forgejo/workflows/ci.yml) — `cargo test --locked` + `cargo clippy --all-targets -- -D warnings` on `main` and PRs when `src/`, `crates/`, `tests/`, `Cargo.toml`, `Cargo.lock`, or this workflow change (ignored Tor-live tests are not run). `workflow_dispatch` always runs the suite. Pi runner, `docker` label.
|
||||
- [`.forgejo/workflows/release.yml`](.forgejo/workflows/release.yml) — manual, batched release (`workflow_dispatch` only: `dry_run`, `bump`, `version`, `tag`): next tag, aarch64 (`docker`) + x86_64 (`docker-amd64`), one release, fail-closed tag delete on failure. The tag it creates fires [`android-release.yml`](.forgejo/workflows/android-release.yml) (`push: tags: v*.*.*`), which joins the same release with the APK + AAR. Concurrency group `onionwire-ci-pi` (same as `ci.yml`, `cancel-in-progress: false`) so cargo jobs do not overlap on the Pi. Amd64 dind is serialized by runner `capacity=1`.
|
||||
- [`.forgejo/workflows/release.yml`](.forgejo/workflows/release.yml) — manual, batched release (`workflow_dispatch` only: `dry_run`, `bump`, `version`, `tag`): next tag, aarch64 (`docker`) + x86_64 (`docker-amd64`), one release, fail-closed tag delete on failure. Dispatch [`android-release.yml`](.forgejo/workflows/android-release.yml) with that tag to add the APK + AAR (no automatic trigger fires on this Forgejo; it is `workflow_dispatch` only). Concurrency group `onionwire-ci-pi` (same as `ci.yml`, `cancel-in-progress: false`) so cargo jobs do not overlap on the Pi. Amd64 dind is serialized by runner `capacity=1`.
|
||||
|
||||
Scripts:
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue