Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Liudon authored Sep 29, 2024
1 parent a101adf commit d005858
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
- name: Compress Image
uses: jruipinto/ImageMagick-action@v1
with:
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 {} +

github_pages:
name: Build and Publish Github Pages
Expand Down

0 comments on commit d005858

Please sign in to comment.