build(ui): build the dashboard in CI and the Taskfile instead of committing ui/dist
Quality / check (push) Canceled after 1m27s
deploy / gate (push) Successful in 4m28s
deploy / archied-image (push) Successful in 3m29s
deploy / agent-image (push) Successful in 11s
deploy / dist-zip (push) Skipped

This commit is contained in:
sam committed 2026-11-01 22:07:36 +11:00
1 parent 243832fee6
commit d6ca6a72a5
76 files changed
+43 -528

No files matched your search

+2 -1
View File
@@ -38,7 +38,8 @@ jobs:
cache: false
- name: Build archied
run: go build -o "$RUNNER_TEMP/archied" ./cmd/archied
# The check never serves the dashboard, so the build leaves it out.
run: go build -tags no_ui -o "$RUNNER_TEMP/archied" ./cmd/archied
# Promotion retags stable and the images' latest in the registry.
- name: Log in to the Gitea registry
+18 -7
View File
@@ -99,13 +99,8 @@ jobs:
- name: Pull test container images
run: docker pull alpine:3
# One definition of the gate, in the Taskfile. This step used to inline
# its own list, which drifted weaker than `task check`: it ran no
# db:check, news:check or ui:check, so a release could ship stale
# generated SQL, a stale ui/dist, or release notes that disagree with
# CHANGELOG.md. It also ran the dashboard suite here rather than in the
# gate, where test:ui runs it with the type check. TEST_FLAGS is the one
# difference -- the release runs the whole suite, uncached and including
# One definition of the gate, in the Taskfile. TEST_FLAGS is the one
# difference: the release runs the whole suite, uncached and including
# the Docker-backed tests -short skips. The diff after it asserts
# `task fmt` changed nothing.
- name: Quality gate
@@ -299,6 +294,22 @@ jobs:
# archiving them for the Actions cache takes minutes.
cache: false
- uses: pnpm/action-setup@v4
with:
package_json_file: ui/package.json
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: "24"
# archied and archie-ui embed the dashboard.
- name: Build the dashboard
working-directory: ui
run: |
pnpm install --frozen-lockfile
pnpm run build
- name: Resolve archied version
id: version
run: echo "version=${{ needs.gate.outputs.archied_version }}" >> "$GITHUB_OUTPUT"