Skip to content

Commit d005858

Browse files
authored
Update main.yml
1 parent a101adf commit d005858

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
- name: Compress Image
5252
uses: jruipinto/ImageMagick-action@v1
5353
with:
54-
command: find ./content/posts/ -type f ( -name "*.jpg" -o -name "*.png" -o -name "*.jpeg" ) -exec convert {} {}.webp && convert {} {}.avif \;
54+
command: find ./content/posts/ -type f ( -name "*.jpg" -o -name "*.png" -o -name "*.jpeg" ) -exec sh -c 'for img; do convert "$img" "${img%.*}.webp" && convert "$img" "${img%.*}.avif"; done' sh {} +
5555

5656
github_pages:
5757
name: Build and Publish Github Pages

0 commit comments

Comments
 (0)