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

31 lines
687 B
YAML

name: GitHub Pages
on:
push:
branches:
- stable
jobs:
build-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: "latest"
extended: true
- name: Build
working-directory: ./exampleSite
run: hugo --minify --themesDir ../.. --baseURL https://jpanther.github.io/Congo/
- name: Deploy
uses: peaceiris/actions-gh-pages@v2
env:
PERSONAL_TOKEN: ${{ secrets.PersonalAccessToken }}
PUBLISH_BRANCH: gh-pages
PUBLISH_DIR: ./exampleSite/public