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 a101adf commit d005858Copy full SHA for d005858
.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 ( -name "*.jpg" -o -name "*.png" -o -name "*.jpeg" ) -exec convert {} {}.webp && convert {} {}.avif \;
+ 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 {} +
55
56
github_pages:
57
name: Build and Publish Github Pages
0 commit comments