We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2fa9b58 commit d624175Copy full SHA for d624175
.github/workflows/static.yml
@@ -34,8 +34,17 @@ jobs:
34
- name: Merge source into main
35
run: |
36
git checkout main
37
- git merge source --no-ff --commit -m "Update main from source"
38
- - name: Push to main
39
- run: git push origin main
+ git merge source --no-ff
+ - name: Minify HTML
+ run: npx html-minifier-terser \
40
+ --collapse-whitespace \
41
+ --remove-comments \
42
+ --minify-css true \
43
+ --minify-js true \
44
+ - name: Commit and push to main
45
+ run: |
46
+ git add .
47
+ git commit -m "Update main from source and minify HTML"
48
+ git push origin main
49
env:
50
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
0 commit comments