diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index d7a67b8..b640e72 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -26,12 +26,12 @@ jobs: - name: Install dependencies run: yarn install --frozen-lockfile - - name: Lint Markdown - run: npx markdownlint-cli2 - - name: Build site run: hexo generate + - name: Lint Markdown + run: npx markdownlint-cli2 + # Best-effort image optimization at build time: originals in source/ # stay untouched, only the built artifact shrinks (~56% on this site). # Note: oxipng is not packaged in the runner's Ubuntu apt repos; pngquant diff --git a/README.md b/README.md index 9b684e2..2c7a33e 100644 --- a/README.md +++ b/README.md @@ -90,10 +90,10 @@ git push origin master The [deploy workflow](.gitea/workflows/deploy.yml) runs three gated stages: 1. **build** — checks out the repo, sets up Node 22, and runs a single - `yarn install --frozen-lockfile` that serves both jobs of this stage: - first it lints all Markdown in `source/` and `scaffolds/` with - `markdownlint-cli2` (house style codified in `.markdownlint-cli2.jsonc`; - lint failures fail the stage), then runs `hexo generate` and optimizes + `yarn install --frozen-lockfile` that serves the whole stage: it runs + `hexo generate`, then lints all Markdown in `source/` and `scaffolds/` + with `markdownlint-cli2` (house style codified in + `.markdownlint-cli2.jsonc`; lint failures fail the stage), then optimizes every PNG/JPEG in the built output with pngquant/jpegoptim (~56% smaller images, originals in `source/` untouched). The site is uploaded as a workflow artifact