Add ToC #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and deploy on commit | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
jobs: | |
build-test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod | |
lfs: true | |
- name: Setup Hugo | |
uses: peaceiris/actions-hugo@v2 | |
with: | |
hugo-version: 'latest' | |
extended: true | |
- name: Build | |
run: hugo --minify | |
- name: Compress archive | |
run: (cd public && tar -cvf ../archive.tar.zst --zstd .) | |
- name: Deploy to server | |
uses: JantHsueh/[email protected] | |
with: | |
url: https://doc-deploy.calaos.fr/deploy | |
forms: '{"key":"${{ secrets.deploy_key }}"}' | |
fileForms: '{"file":"archive.tar.zst"}' |