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
|
2024-04-06 23:31:45 +00:00
|
|
|
uses: peaceiris/actions-hugo@v3
|
2021-08-11 10:22:25 +00:00
|
|
|
with:
|
|
|
|
hugo-version: "latest"
|
2023-11-26 21:06:38 +00:00
|
|
|
extended: true
|
2021-08-11 10:22:25 +00:00
|
|
|
|
|
|
|
- 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
|