mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-11-24 23:16:06 -05:00
Update gh-pages.yml
This commit is contained in:
6
.github/workflows/gh-pages.yml
vendored
6
.github/workflows/gh-pages.yml
vendored
@@ -36,10 +36,10 @@ jobs:
|
|||||||
# just a little lossily (is that a word?)
|
# just a little lossily (is that a word?)
|
||||||
- name: Optimize processed images
|
- name: Optimize processed images
|
||||||
run: |
|
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
|
cd $HOME/gh-pages/notes
|
||||||
find . -iname "*.jp*" -print0 | xargs -0 jpegoptim --max=90 --strip-all
|
find . -iname "*.jp*" -print0 | xargs -0 jpegoptim --max=80 --strip-all
|
||||||
find . -iname "*.png" -print0 | xargs -0 pngquant --quality=60-75 --speed 1 --ext=.png --force --verbose
|
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
|
# Initialize a sub-repository in the new gh-pages directory and
|
||||||
# add jakejarvis/jakejarvis.github.io as a remote.
|
# add jakejarvis/jakejarvis.github.io as a remote.
|
||||||
|
|||||||
Reference in New Issue
Block a user