File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -48,10 +48,12 @@ jobs:
48
48
# sudo mv ./linux-generic/cavif /bin
49
49
# # find ./content/posts/ -type f \( -name "*.jpg" -o -name "*.png" -o -name "*.jpeg" \) -exec cavif {} \;
50
50
51
+ - uses : mfinelli/setup-imagemagick@v5
51
52
- 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 sh -c 'for img; do convert "$img" "${img%.*}.webp" && convert "$img" "${img%.*}.avif"; done' sh {} +
53
+ run : |
54
+ find ./content/posts/ -type f \( -name "*.jpg" -o -name "*.png" -o -name "*.jpeg" \) -exec magick convert {} {}.webp \;
55
+ find ./content/posts/ -type f \( -name "*.jpg" -o -name "*.png" -o -name "*.jpeg" \) -exec magick convert {} {}.avif \;
56
+ ls -l ./content/posts/building-a-workout-page/
55
57
56
58
github_pages :
57
59
name : Build and Publish Github Pages
You can’t perform that action at this time.
0 commit comments