Add build-time image optimization (pngquant/oxipng/jpegoptim) to pipeline
Lint, build, test and deploy / lint (push) Successful in 59s
Lint, build, test and deploy / build (push) Failing after 1m32s
Lint, build, test and deploy / test (push) Skipped
Lint, build, test and deploy / deploy (push) Skipped

This commit is contained in:
Leon Xu committed 2026-11-29 14:46:04 -08:00
1 parent 3f5ba20810
commit 663c0aab25
2 files changed
+12 -2

No files matched your search

+3 -2
View File
@@ -92,8 +92,9 @@ The [deploy workflow](.gitea/workflows/deploy.yml) runs four gated stages:
1. **lint** — checks all Markdown in `source/` and `scaffolds/` with
`markdownlint-cli2` (house style codified in `.markdownlint-cli2.jsonc`)
2. **build** — checks out the repo, sets up Node 22, runs `yarn install
--frozen-lockfile` and `hexo generate` (~171 files, ~9 MB into `public/`),
then uploads the site as a workflow artifact
--frozen-lockfile` and `hexo generate`, optimizes every PNG/JPEG in the
built output with pngquant/oxipng/jpegoptim (~58% smaller images, originals
in `source/` untouched), then uploads the site as a workflow artifact
3. **test** — validates the built artifact without touching production:
structural checks (index, theme assets, file count) plus a serving smoke
test that requests the homepage, a real post page, and the stylesheet