Skip to content

Commit

Permalink
perf: ⚡ compress paywall to gzip
Browse files Browse the repository at this point in the history
  • Loading branch information
ssi-moha committed Oct 11, 2023
1 parent c5bd659 commit a56c6d4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/upload-paywall.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ jobs:
run: pnpm build:paywall:ci
env:
DOTENV_KEY: ${{ secrets.DOTENV_KEY }}
- name: Compress
run: |
find apps/paywall/dist -type f \( -name '*.js' -o -name '*.css' \) -exec gzip -9 {} \; -exec mv {}.gz {} \;
- name: Archive staging artifacts
uses: actions/upload-artifact@v3
with:
Expand Down Expand Up @@ -58,6 +61,10 @@ jobs:
run: pnpm build:paywall:ci
env:
DOTENV_KEY: ${{ secrets.DOTENV_KEY }}
- name: Compress
run: |
find apps/paywall/dist -type f \( -name '*.js' -o -name '*.css' \) -exec gzip -9 {} \; -exec mv {}.gz {} \;
- name: Archive prod artifacts
uses: actions/upload-artifact@v3
with:
Expand Down

0 comments on commit a56c6d4

Please sign in to comment.