diff --git a/.github/workflows/openscad_build.yml b/.github/workflows/openscad_build.yml index 0f8c245..9485657 100644 --- a/.github/workflows/openscad_build.yml +++ b/.github/workflows/openscad_build.yml @@ -1,4 +1,4 @@ -name: Generate STL and WebP Thumbnails using OpenSCAD +name: Generate STL and Thumbnails using OpenSCAD on: push: @@ -38,16 +38,15 @@ jobs: done ' - - name: Convert PNG thumbnails to WebP run: | for png in $(find . -name "*.png"); do cwebp $png -o ${png%.png}.webp done - - name: Clean up directory (Only keep STL and WebP files) + - name: Clean up directory (Only keep STL, WebP, and txt files) run: | - find . ! -path "./.git/*" ! -name ".git" -type f ! \( -name "*.stl" -o -name "*.webp" \) -delete + find . ! -path "./.git/*" ! -name ".git" -type f ! \( -name "*.stl" -o -name "*.webp" -o -name "*.txt" \) -delete - name: Generate index.html run: | @@ -57,6 +56,10 @@ jobs: echo "
$(cat $txtPath | sed 's/$/
/')