Files
momme-world/.gitea/workflows/site.yml
T
momme 5b3e03ef5b
site / generated-is-current (push) Failing after 21s
site.yml: install git in the alpine job (sync check needs git)
2026-10-14 01:53:38 +02:00

34 lines
867 B
YAML

name: site
# The cluster serves what is committed in k8s/site/ — so CI just enforces that
# k8s/site/ is exactly what the generator produces from commands/ + src/.
# If this job fails, run `npm run build` and commit the result.
on:
push:
branches: ["**"]
pull_request:
jobs:
generated-is-current:
runs-on: ubuntu-latest
container:
image: node:22-alpine
steps:
- uses: actions/checkout@v4
- name: install git
run: apk add --no-cache git
- run: npm ci --no-audit --no-fund
- run: npm run build
- name: generated output is committed
run: |
git add -A k8s/site
if ! git diff --staged --quiet; then
echo "k8s/site/ is not in sync with commands/ + src/ — run 'npm run build' and commit:"
git diff --staged --stat
exit 1
fi