Skip to content

Commit

Permalink
Add zopfli to the deployment tool chain
Browse files Browse the repository at this point in the history
  • Loading branch information
wintermeyer committed Sep 25, 2023
1 parent 7f8a1fd commit 2e9517e
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/antora_build_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v2

- name: Install rsync and brotli
run: sudo apt-get install -y rsync brotli
- name: Install rsync, zopfli and brotli
run: sudo apt-get install -y rsync brotli zopfli

- name: Setup Node.js
uses: actions/setup-node@v2
Expand All @@ -29,9 +29,13 @@ jobs:
run: |
antora --fetch antora-playbook.yml # Replace 'antora-playbook.yml' with your playbook's name if different
- name: Brotli compress all HTML files
- name: Zopfli compress all HTML and CSS files
run: |
find ./build/site/ -name "*.html" -exec brotli {} \;
find ./build/site/ \( -name "*.html" -o -name "*.css" \) -exec zopfli {} \;
- name: Brotli compress all HTML and CSS files
run: |
find ./build/site/ \( -name "*.html" -o -name "*.css" \) -exec brotli {} \;
- name: Deploy to Linux server via SCP
env:
Expand Down

0 comments on commit 2e9517e

Please sign in to comment.