Publish site

This commit is contained in:
Yann Hamon 2021-12-19 17:06:46 +01:00 committed by Yann
parent 6c1fa513e9
commit 3a3d05b27c
50 changed files with 2310 additions and 0 deletions

27
.github/workflows/site.yml vendored Normal file
View file

@ -0,0 +1,27 @@
on:
workflow_dispatch:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.83.1'
- name: Build
run: hugo --minify
working-directory: site
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/master'
with:
publish_dir: ./site/public
github_token: ${{ secrets.GITHUB_TOKEN }}