54 lines
2.4 KiB
YAML
54 lines
2.4 KiB
YAML
# Ianitor Domi: the Gitea release of a v* tag (docs/release.md). Ianitor ships no binary (the server builds it with
|
|
# Nix and the deploy pipeline switches it in), so a release is its notes and screenshots of the web UI, published under
|
|
# a SHA256SUMS signed by domi-release through Custos; release-notes.md is also the release's text on Gitea.
|
|
# The Windows runner (the Fabrica app on Mark's PC) runs it: `fabrica`, node and pnpm are on every step's PATH.
|
|
# No Gitea webhook to the hub yet: a pushed tag is started on demand (the hub's POST /api/runs, ref v<version>).
|
|
# `notes` is Fabrica's release notes since the previous v* tag (Fabrica docs/12_release_kit.md); `shots` takes the
|
|
# same files as `fabrica aula shots` (core docs/FORMATS.md, "Fabrica: the Aula page") from the built web UI against
|
|
# the demo control plane with invented data, in headless Edge. No landing page while app.yaml has no `aula: true`.
|
|
# `pin` publishes the Nix build's NAR hashes (.fabrica/nix/pin.json, written by scripts/nix-pin.sh on Linux at a
|
|
# clean commit and committed before the tag) as ianitor-nix.json, and refuses a pin made from other code than the
|
|
# tag's (its recorded source tree must be the tag's); that check is the gate, since pipelines cannot depend on one
|
|
# another. The `verify-nix` pipeline rebuilds the tag on the NixOS runner and compares (docs/verify.md).
|
|
name: release
|
|
on:
|
|
tag: "v*"
|
|
manual: true
|
|
runner: windows
|
|
steps:
|
|
- id: version
|
|
run: node scripts/check-version.mjs ${{ version }}
|
|
- id: install
|
|
run: pnpm install --frozen-lockfile
|
|
- id: check
|
|
needs: [install]
|
|
run: pnpm --filter web check
|
|
- id: test
|
|
needs: [install]
|
|
run: pnpm --filter web test
|
|
- id: notes
|
|
run: fabrica notes
|
|
artifacts: ["target/notes/release-notes.md", "target/notes/release-notes.json"]
|
|
- id: shots
|
|
needs: [check, test]
|
|
run: node apps/web/scripts/shots.mjs
|
|
artifacts: ["target/aula/aula-*.png", "target/aula/aula.json"]
|
|
- id: pin
|
|
needs: [version]
|
|
run: node scripts/release-pin.mjs ${{ version }} ${{ tag }} ${{ commit }}
|
|
artifacts: ["target/nix/ianitor-nix.json"]
|
|
- id: approve
|
|
needs: [version, notes, shots, pin]
|
|
approve: "Publish Ianitor ${{ tag }}: its notes and screenshots?"
|
|
- id: publish
|
|
needs: [approve]
|
|
publish:
|
|
gitea-release: true
|
|
files:
|
|
- "**/release-notes.md"
|
|
- "**/release-notes.json"
|
|
- "**/aula-*.png"
|
|
- "**/aula.json"
|
|
- "**/ianitor-nix.json"
|
|
sums: domi-release
|