mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-11-24 22:16:08 -05:00
add optipng step to CI
This commit is contained in:
7
.github/workflows/gh-pages.yml
vendored
7
.github/workflows/gh-pages.yml
vendored
@@ -36,10 +36,13 @@ jobs:
|
||||
# just a little lossily (is that a word?)
|
||||
- name: Optimize processed images
|
||||
run: |
|
||||
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends pngquant jpegoptim
|
||||
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends jpegoptim pngquant optipng
|
||||
cd $HOME/gh-pages/notes
|
||||
find . -iname "*.jp*" -print0 | xargs -0 jpegoptim --max=80 --strip-all
|
||||
find . -iname "*.png" -print0 | xargs -0 pngquant --quality=60-65 --speed 1 --ext=.png --force --verbose
|
||||
find . -iname "*.png" -print0 | xargs -0 pngquant --quality=50-70 --speed 3 --ext=.png --force
|
||||
find . -iname "*.png" -print0 | xargs -0 optipng -o2 -force -strip all -quiet --
|
||||
# Ignore errors - override pipefail
|
||||
shell: bash {0}
|
||||
|
||||
# Initialize a sub-repository in the new gh-pages directory and
|
||||
# add jakejarvis/jakejarvis.github.io as a remote.
|
||||
|
||||
Reference in New Issue
Block a user