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
|
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-14 04:38:07 +01:00
|
|
|
fetch-depth: 1
|
2022-04-22 07:16:26 +01:00
|
|
|
path: PaperModX
|
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'
|
2020-07-21 19:08:28 +01:00
|
|
|
|
|
|
|
- name: Build
|
2022-04-14 10:45:57 +01:00
|
|
|
run: cd exampleSite && hugo -D --gc --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 }}
|
2022-04-14 04:38:07 +01:00
|
|
|
publish_dir: ./exampleSite/public
|