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
|
2022-11-10 02:00:34 +00:00
|
|
|
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
|
2023-09-09 23:20:00 +00:00
|
|
|
uses: actions/checkout@v4
|
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
|