PaperModX/.github/workflows/gh-pages.yml

35 lines
756 B
YAML
Raw Normal View History

2022-04-12 16:30:31 +01:00
name: GitHub Pages
2020-07-21 19:08:28 +01:00
on:
push:
2020-09-24 07:48:18 +01:00
paths-ignore:
- "README.md"
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:36:15 +01:00
ref: exampleSite
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