mirror of
https://github.com/draussenfunker/draussenfunker.github.io.git
synced 2025-12-31 08:29:17 +00:00
added image optimization to pipeline
This commit is contained in:
parent
dca882bccd
commit
2253624aab
1 changed files with 3 additions and 0 deletions
3
.github/workflows/deploy-docs.yml
vendored
3
.github/workflows/deploy-docs.yml
vendored
|
|
@ -29,6 +29,9 @@ jobs:
|
|||
- name: Install Deps
|
||||
run: yarn install --frozen-lockfile
|
||||
|
||||
- name: optimize images
|
||||
run: "npx sharp-cli resize 800 --withoutEnlargement true --optimise true --progressive true --withMetadata false --input $(find ./docs \( -name cache -prune \) -o -name '*' -type f -exec file {} \; | awk -F: '{ if ($2 ~/[Ii]mage|EPS/) print $1}') --output '{dir}/{base}'"
|
||||
|
||||
- name: Build Docs
|
||||
env:
|
||||
NODE_OPTIONS: --max_old_space_size=4096
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue