2024-06-15 10:41:59 +00:00
|
|
|
name: document
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
deploy:
|
|
|
|
runs-on: Ubuntu-22.04
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
with:
|
|
|
|
submodules: true
|
|
|
|
- name: Install Hugo
|
|
|
|
uses: peaceiris/actions-hugo@v3
|
|
|
|
with:
|
|
|
|
hugo-version: 'latest'
|
|
|
|
extended: true
|
|
|
|
- name: Build Webpage
|
|
|
|
working-directory: ./docs/
|
|
|
|
run: |
|
|
|
|
hugo --minify
|
|
|
|
- name: Deploy
|
2024-06-16 11:20:44 +00:00
|
|
|
uses: peaceiris/actions-gh-pages@v4
|
2024-06-15 10:41:59 +00:00
|
|
|
with:
|
|
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
publish_branch: gh-pages
|
2024-06-16 11:20:44 +00:00
|
|
|
publish_dir: ./docs/public
|
2024-06-15 10:41:59 +00:00
|
|
|
force_orphan: true
|
|
|
|
commit_message: ${{ github.event.head_commit.message }}
|