compress all HTML files (#3568)

* compress all HTML files

* remove gz files, they get zipped in the build pipeline

* Update build.yaml

* removed flipImageSize.png, it is not used anywhere anymore

* Update build.yaml
This commit is contained in:
CaCO3
2025-02-16 19:11:09 +01:00
committed by GitHub
parent 26770d877e
commit 6b672ff9a5
23 changed files with 10 additions and 1 deletions

View File

@@ -86,7 +86,16 @@ jobs:
cp -r ./sd-card/html/* ./html/
echo "Replacing variables..."
cd html; find . -type f -exec sed -i 's/$COMMIT_HASH/${{ steps.vars.outputs.sha_short }}/g' {} \;
cd html
find . -type f -exec sed -i 's/$COMMIT_HASH/${{ steps.vars.outputs.sha_short }}/g' {} \;
echo "compressing all html files..."
find . -name "*.html" -type f -exec gzip {} \;
find . -name "*.css" -type f -exec gzip {} \;
find . -name "*.js" -type f -exec gzip {} \;
find . -name "*.jpg" -type f -exec gzip {} \;
find . -name "*.png" -type f -exec gzip {} \;
find . -name "*.svg" -type f -exec gzip {} \;
find . -name "*.map" -type f -exec gzip {} \;
- name: Prepare Demo mode files
run: |