Skip to content

Commit 19ce7af

Browse files
authored
Update main.yml
1 parent 7cdc560 commit 19ce7af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ jobs:
5555
run: |
5656
sudo apt-get update
5757
sudo apt-get install -y imagemagick libheif-dev
58-
find ./content/posts/ -type f \( -name "*.jpg" -o -name "*.png" -o -name "*.jpeg" \) -exec convert {} {}.webp \;
59-
find ./content/posts/ -type f \( -name "*.jpg" -o -name "*.png" -o -name "*.jpeg" \) -exec convert {} {}.avif \;
58+
find ./content/posts/ -type f \( -name "*.jpg" -o -name "*.png" -o -name "*.jpeg" \) -exec convert {} -resize 1080x\> {}.webp \;
59+
find ./content/posts/ -type f \( -name "*.jpg" -o -name "*.png" -o -name "*.jpeg" \) -exec convert {} -resize 1080x\> {}.avif \;
6060
6161
- name: Setup Hugo
6262
uses: peaceiris/actions-hugo@v3

0 commit comments

Comments
 (0)