Skip to content

GitHub Pages

GitHub Pages #15

name: GitHub Pages
on:
push:
branches: [ master ]
paths: [ 'docs/**' ]
workflow_dispatch:
inputs:
jobs:
build-deploy:
runs-on: ubuntu-22.04
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 0
- name: Setup Hugo
uses: peaceiris/actions-hugo@v3
with:
hugo-version: '0.124.1'
extended: true
- name: Build
run: hugo -s docs --minify
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
publish_dir: ./docs/public