1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-11-24 22:16:08 -05:00

Update gh-pages.yml

This commit is contained in:
2019-11-03 21:43:25 -05:00
parent c28658a19d
commit bd2b9ebd18

View File

@@ -36,10 +36,10 @@ jobs:
# just a little lossily (is that a word?)
- name: Optimize processed images
run: |
sudo apt-get install -y --no-install-recommends pngquant jpegoptim
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends pngquant jpegoptim
cd $HOME/gh-pages/notes
find . -iname "*.jp*" -print0 | xargs -0 jpegoptim --max=90 --strip-all
find . -iname "*.png" -print0 | xargs -0 pngquant --quality=60-75 --speed 1 --ext=.png --force --verbose
find . -iname "*.jp*" -print0 | xargs -0 jpegoptim --max=80 --strip-all
find . -iname "*.png" -print0 | xargs -0 pngquant --quality=60-70 --speed 1 --ext=.png --force --verbose
# Initialize a sub-repository in the new gh-pages directory and
# add jakejarvis/jakejarvis.github.io as a remote.