minification in the pipeline
This commit is contained in:
parent
586c308bcc
commit
6de658169e
1 changed files with 3 additions and 1 deletions
|
@ -11,11 +11,13 @@ jobs:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: apk add curl nodejs git zola openssh
|
run: apk add curl nodejs git zola openssh minify
|
||||||
- name: Output SSH key to file
|
- name: Output SSH key to file
|
||||||
run: echo ${{ secrets.SSH_KEY }} > ssh_id
|
run: echo ${{ secrets.SSH_KEY }} > ssh_id
|
||||||
- name: Build web
|
- name: Build web
|
||||||
run: zola build
|
run: zola build
|
||||||
|
- name: Minify files
|
||||||
|
run: minify --all -r -o . public
|
||||||
# TODO: this is where the LaTeX build would go...
|
# TODO: this is where the LaTeX build would go...
|
||||||
- name: Transfer built files
|
- name: Transfer built files
|
||||||
run: scp -i ssh_id -o StrictHostKeyChecking=accept-new -r ./public/ ${{ vars.SERVER_URL }}
|
run: scp -i ssh_id -o StrictHostKeyChecking=accept-new -r ./public/ ${{ vars.SERVER_URL }}
|
||||||
|
|
Loading…
Add table
Reference in a new issue