63 lines
2.5 KiB
YAML
63 lines
2.5 KiB
YAML
# 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 and the Aula page, 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<version>).
|
|
# 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 (videos) is in the runner's PLAYWRIGHT_BROWSERS_PATH, never on C:; nothing is downloaded.
|
|
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: 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: approve
|
|
needs: [source, page]
|
|
approve: "Publish Ianitor ${{ tag }}: its source, notes and screenshots?"
|
|
- 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"
|
|
sums: domi-release
|