Add build-time image optimization (pngquant/oxipng/jpegoptim) to pipeline
This commit is contained in:
1 parent
3f5ba20810
commit
663c0aab25
2 files changed
+12
-2
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user