106 lines
3.7 KiB
YAML
106 lines
3.7 KiB
YAML
# Rosea Domi: one release, both apps (.agents/features/fabrica-release.md; Fabrica docs/36_app_onboarding.md).
|
|
# A `vX.Y.Z` tag (Fabrica: Apps → Rosea → Deploy, or `fabrica deploy rosea --part desktop`) is started on the hub.
|
|
# The Windows runner (the Fabrica app on Mark's PC, whose folder is on every step's PATH, so `fabrica` is its own
|
|
# CLI) runs every gate of CLAUDE.md §5.5 on a clean checkout, the e2e and offline suites against the BUILT PWA,
|
|
# takes the Aula pictures on demo data (e2e/aula.spec.ts), and builds the Windows installer and the Android APK.
|
|
# Nothing is signed before Mark's card. Then: Authenticode on the installer (domi-code-signing); the APK through
|
|
# custos-sign with rosea-android (Custos makes that key on the first release: a first-signature card); a minisign
|
|
# signature for each (domi-release); the release with SHA256SUMS signed by domi-release.
|
|
# No updater and no latest.json: the apps make no network call of their own (CLAUDE.md §2). Mark's PC updates
|
|
# through Fabrica's Update all; a player installs the next file over the old one (F3).
|
|
# The repository is public, so `publish` is a public release: the tag waits for the author (G6.1, F1).
|
|
# Playwright's browsers are in F:\ms-playwright (CLAUDE.md §3: never C:); nothing is downloaded during a release.
|
|
name: release
|
|
on:
|
|
tag: "v*"
|
|
manual: true
|
|
runner: windows
|
|
env:
|
|
PLAYWRIGHT_BROWSERS_PATH: 'F:\ms-playwright'
|
|
CUSTOS_SIGN_EXE: 'F:\Apps\Custos\custos-sign.exe'
|
|
steps:
|
|
- id: version
|
|
run: node scripts/check-version.mjs ${{ version }}
|
|
- id: install
|
|
run: pnpm install --frozen-lockfile
|
|
- id: lint
|
|
needs: [install]
|
|
run: pnpm lint
|
|
- id: typecheck
|
|
needs: [install]
|
|
run: pnpm typecheck
|
|
- id: test
|
|
needs: [install]
|
|
run: pnpm test
|
|
- id: library
|
|
needs: [install]
|
|
run: pnpm validate:library
|
|
- id: copy
|
|
needs: [install]
|
|
run: pnpm lint:copy
|
|
- id: e2e
|
|
needs: [lint, typecheck, test, library, copy]
|
|
run: pnpm test:e2e
|
|
- id: offline
|
|
needs: [e2e]
|
|
run: pnpm test:offline
|
|
- id: pictures
|
|
needs: [offline]
|
|
run: pnpm aula:shots
|
|
- id: desktop
|
|
needs: [offline]
|
|
run: pnpm tauri:build
|
|
artifacts: ["apps/rosea-tauri/src-tauri/target/release/bundle/nsis/*-setup.exe"]
|
|
- id: android
|
|
needs: [desktop]
|
|
run: pnpm tauri:android-release
|
|
- id: notes
|
|
run: fabrica notes
|
|
artifacts: ["target/notes/release-notes.md", "target/notes/release-notes.json"]
|
|
- id: notes-copy
|
|
needs: [notes, install]
|
|
run: pnpm lint:copy
|
|
- id: shots
|
|
needs: [pictures]
|
|
run: fabrica aula shots
|
|
artifacts: ["target/aula/aula-*.png", "target/aula/aula.json"]
|
|
- id: page
|
|
needs: [notes-copy, shots]
|
|
run: fabrica aula page
|
|
artifacts: ["target/aula/aula-page.json", "target/aula/aula-page.html"]
|
|
- id: approve
|
|
needs: [version, desktop, android, page]
|
|
approve: "Release Rosea ${{ tag }}?"
|
|
- id: sign
|
|
needs: [approve]
|
|
sign:
|
|
key: domi-code-signing
|
|
kind: authenticode
|
|
files: ["**/*-setup.exe"]
|
|
- id: apk
|
|
needs: [approve]
|
|
run: pnpm --filter @rosea/tauri sign:apk ${{ version }} ${{ commit }}
|
|
keys: [rosea-android]
|
|
artifacts: ["target/release/rosea-domi-*-arm64.apk"]
|
|
- id: minisign
|
|
needs: [sign, apk]
|
|
sign:
|
|
key: domi-release
|
|
kind: minisign
|
|
files: ["**/*-setup.exe", "**/rosea-domi-*-arm64.apk"]
|
|
- id: publish
|
|
needs: [minisign]
|
|
publish:
|
|
gitea-release: true
|
|
files:
|
|
- "**/*-setup.exe"
|
|
- "**/*-setup.exe.minisig"
|
|
- "**/rosea-domi-*-arm64.apk"
|
|
- "**/rosea-domi-*-arm64.apk.minisig"
|
|
- "target/aula/aula-*.png"
|
|
- "target/aula/aula.json"
|
|
- "target/aula/aula-page.json"
|
|
- "**/release-notes.md"
|
|
- "**/release-notes.json"
|
|
sums: domi-release
|