# Ianitor Domi: the Gitea release of a v* tag (docs/release.md, docs/fabrica.md). Ianitor ships no binary (the server # builds it with Nix and the deploy pipeline switches it in), so a release is the source archive of the tag, its notes, # the screenshots of the web UI, the Aula page and the Nix pin, all 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). # The web UI's e2e suite (apps/web/playwright.config.ts) runs the main flows and takes the pictures in the installed # Edge against the demo control plane with invented data, at a fixed instant; `fabrica aula shots` checks and copies # them (.fabrica/aula.yaml, `file:` shots) and `fabrica aula page` builds the landing page from them and the brief. # Playwright's ffmpeg (the flows' videos) is in PLAYWRIGHT_BROWSERS_PATH, set here so the step does not depend on the # runner's environment: F:\ms-playwright on Mark's PC, never C:. Nothing is downloaded during a release; a runner # without it fails the e2e step with Playwright's "Executable doesn't exist" naming the path. # `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 env: PLAYWRIGHT_BROWSERS_PATH: 'F:\ms-playwright' 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: e2e needs: [check, test] run: pnpm --filter web test:e2e - id: pictures needs: [e2e] run: pnpm --filter web aula:shots - id: source needs: [version] run: node scripts/pack-source.mjs ${{ version }} artifacts: ["target/release/ianitor-*-src.tar.gz"] - id: notes run: fabrica notes artifacts: ["target/notes/release-notes.md", "target/notes/release-notes.json"] - id: shots needs: [pictures] run: fabrica aula shots artifacts: ["target/aula/aula-*.png", "target/aula/aula.json"] - id: page needs: [notes, shots] run: fabrica aula page artifacts: ["target/aula/aula-page.json", "target/aula/aula-page.html"] - id: pin-test run: node --test scripts/release-pin.test.mjs - id: pin needs: [version, pin-test] run: node scripts/release-pin.mjs ${{ version }} ${{ tag }} ${{ commit }} artifacts: ["target/nix/ianitor-nix.json"] - id: approve needs: [source, page, pin] approve: "Publish Ianitor ${{ tag }}: its source, notes, screenshots and Nix pin?" - id: publish needs: [approve] publish: gitea-release: true files: - "**/ianitor-*-src.tar.gz" - "**/release-notes.md" - "**/release-notes.json" - "**/aula-*.png" - "**/aula.json" - "**/aula-page.json" - "**/ianitor-nix.json" sums: domi-release