We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f457057 commit 52231a5Copy full SHA for 52231a5
.github/workflows/main.yml
@@ -51,7 +51,7 @@ jobs:
51
- name: Compress Image
52
uses: jruipinto/ImageMagick-action@v1
53
with:
54
- command: find ./content/posts/ -type f $ -iname "*.jpg" -o -iname "*.jpeg" -o -iname "*.png" $ -exec sh -c 'for img; do convert "$img" "${img%.*}.webp" && convert "$img" "${img%.*}.avif"; done' _ {} +
+ command: find ./content/posts/ -type f \( -name "*.jpg" -o -name "*.png" -o -name "*.jpeg" \) -exec convert {} {}.webp && convert {} {}.avif \;
55
56
github_pages:
57
name: Build and Publish Github Pages
0 commit comments