Merge pull request 'release: stage dist before signing, and sign via a named volume' (#188)
This commit is contained in:
commit
08bf6649df
2 changed files with 80 additions and 28 deletions
|
|
@ -110,11 +110,19 @@ The `SOURCE_DATE_EPOCH` step reads the committer time of
|
|||
`needs.version.outputs.sha`. It is deliberately not "now": a rebuild of this tag
|
||||
in six months has to hand the compiler the same epoch CI handed it.
|
||||
|
||||
`publish` job (Pi runner) downloads both artifacts, refuses any empty file,
|
||||
and calls `scripts/publish-release.sh` to create-or-update the release with all
|
||||
four Linux assets. If this job fails and the tag was created by *this* run, the
|
||||
final step deletes the incomplete release and the tag. A failed `aarch64` or
|
||||
`x86_64` job always fails `publish`, so nothing is published half-built.
|
||||
`publish` job (Pi runner) downloads both artifacts, stages them into `dist/`,
|
||||
signs every asset with `scripts/sign-release.sh` inside the same digest-pinned
|
||||
builder image, and only then calls `scripts/publish-release.sh` to create-or-update
|
||||
the release with all four Linux assets plus the committed public key. Signing runs
|
||||
in a container fed by a **named volume + `docker cp`**, not a bind mount of the
|
||||
workspace: on this runner `$GITHUB_WORKSPACE` is a path inside the job container,
|
||||
while docker resolves a `-v` source on the host — a bind mount therefore arrives
|
||||
empty and the sign script is missing (run 768). Signing is also staged *after*
|
||||
`dist/` is populated, so the files it signs exist; a run with no
|
||||
`MINISIGN_SECRET_KEY` still stops before anything is uploaded. If this job fails
|
||||
and the tag was created by *this* run, the final step deletes the incomplete
|
||||
release and the tag. A failed `aarch64` or `x86_64` job always fails `publish`, so
|
||||
nothing is published half-built.
|
||||
|
||||
## Android (APK + AAR) on the same tag
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue