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

37 lines
885 B
YAML
Raw Normal View History

2021-08-11 10:22:25 +00:00
name: GitHub Pages
on:
push:
branches:
- stable
jobs:
build-deploy:
2021-11-10 00:22:48 +00:00
name: Build and Deploy
runs-on: ubuntu-latest
2021-08-11 10:41:25 +00:00
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
2021-08-11 10:22:25 +00:00
steps:
- name: Checkout
uses: actions/checkout@v3
2021-08-11 10:41:25 +00:00
with:
submodules: true
fetch-depth: 0
2021-08-11 10:22:25 +00:00
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: "latest"
- name: Build
working-directory: ./exampleSite
2022-01-15 21:58:14 +00:00
run: hugo --minify --themesDir ../.. --buildDrafts --baseURL https://jpanther.github.io/congo/
2021-08-11 10:22:25 +00:00
- name: Deploy
2021-08-11 10:41:25 +00:00
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.ref == 'refs/heads/stable' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: ./exampleSite/public