2022-04-12 16:30:31 +01:00
|
|
|
name: GitHub Pages
|
2020-07-21 19:08:28 +01:00
|
|
|
|
|
|
|
on:
|
2020-09-24 06:53:27 +01:00
|
|
|
push:
|
2020-09-24 07:48:18 +01:00
|
|
|
paths-ignore:
|
2022-03-27 15:09:44 +01:00
|
|
|
- "README.md"
|
2020-09-24 06:53:27 +01:00
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
- exampleSite
|
2020-07-21 19:08:28 +01:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
deploy:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-04-12 16:30:31 +01:00
|
|
|
- uses: actions/checkout@v3
|
2020-07-21 19:08:28 +01:00
|
|
|
with:
|
2022-04-12 16:30:31 +01:00
|
|
|
submodules: true # Fetch Hugo themes (true OR recursive)
|
|
|
|
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
|
2020-07-25 07:37:01 +01:00
|
|
|
|
2022-04-12 16:30:31 +01:00
|
|
|
- name: Setup Hugo
|
2020-07-21 19:08:28 +01:00
|
|
|
uses: peaceiris/actions-hugo@v2
|
|
|
|
with:
|
2022-04-12 16:30:31 +01:00
|
|
|
hugo-version: '0.91.2'
|
|
|
|
# extended: true
|
2020-07-21 19:08:28 +01:00
|
|
|
|
|
|
|
- name: Build
|
2022-04-12 16:30:31 +01:00
|
|
|
run: hugo -D --verbose --minify
|
2020-07-21 19:08:28 +01:00
|
|
|
|
|
|
|
- name: Deploy
|
|
|
|
uses: peaceiris/actions-gh-pages@v3
|
|
|
|
with:
|
2022-04-12 16:30:31 +01:00
|
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
2020-07-21 19:08:28 +01:00
|
|
|
publish_dir: ./public
|