Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
VirtuBox authored Nov 11, 2020
1 parent ec68a93 commit e7d9dee
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ jobs:
- name: Install prerequesites
run: |
sudo apt-get update
sudo apt-get install tree -y
sudo apt-get -qq autoremove --purge
sudo apt-get install jpegoptim -y
sudo -E time bash scripts/install-webp.sh > /dev/null 2>&1
sudo -E time bash scripts/install-optipng.sh > /dev/null 2>&1
Expand All @@ -42,12 +40,10 @@ jobs:
- name: Optimize Images
run: |
ls -alh images/
/usr/local/bin/img-optimize --all -q
/usr/local/bin/img-optimize --avif
ls -alh images/
/usr/local/bin/img-optimize --jpg -q
/usr/local/bin/img-optimize --png -q
rm images/*.webp
/usr/local/bin/img-optimize --webp
tree -L 2 .
rm images/*.webp
/usr/local/bin/img-optimize --webp --quiet
ls -alh images/
rm -f images/*.webp images/*.avif
/usr/local/bin/img-optimize --all
ls -alh images/

0 comments on commit e7d9dee

Please sign in to comment.