Publish workflow

This commit is contained in:
JP Hastings-Spital 2022-10-23 15:39:34 +01:00
parent 449c83790d
commit 8ec8b1cc0e

32
.github/workflows/publish.yml vendored Normal file
View file

@ -0,0 +1,32 @@
name: CI
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}
steps:
- name: Git checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.104.3'
extended: true
- name: Build
run: hugo --minify
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
personal_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public
cname: www.byjp.me