File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change 8989 find ./content/hardware -type f -name "*-pinout.png" -exec cp {} ./static/resources/pinouts/ \;
9090 find ./content/hardware -type f -name "*-step.zip" -exec cp {} ./static/resources/models/ \;
9191
92+ - name : Check for large files
93+ run : |
94+ find content -type f \( -name "*.png" -o -name "*.jpg" -o -name "*.jpeg" -o -name "*.svg" -o -name "*.gif" \) -size +2M -print0 |
95+ while IFS= read -r -d $'\0' file; do
96+ size=$(ls -lh "$file" | awk '{print $5}')
97+ echo "::warning file=$file::Image is very large: $size. Consider optimizing it."
98+ done
99+
100+ find content -type f \( -name "*.pdf" -o -name "*.zip" -o -name "*.mp4" \) -size +10M -print0 |
101+ while IFS= read -r -d $'\0' file; do
102+ size=$(ls -lh "$file" | awk '{print $5}')
103+ echo "::warning file=$file::Asset file is very large: $size. This can impact repository size and checkout times."
104+ done
105+
92106 - name : Gatsby main cache
93107 uses : actions/cache@v4
94108 id : gatsby-cache-folder
You can’t perform that action at this time.
0 commit comments