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

36 lines
843 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-08-11 10:41:25 +00:00
runs-on: ubuntu-20.04
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
2021-08-11 10:22:25 +00:00
steps:
- name: Checkout
2021-08-11 10:41:25 +00:00
uses: actions/checkout@v2
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
run: hugo --minify --themesDir ../.. --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