mirror of
https://github.com/ToruNiina/toml11.git
synced 2025-12-16 03:08:52 +08:00
ci: add actions test and docs
This commit is contained in:
32
.github/workflows/document.yml
vendored
Normal file
32
.github/workflows/document.yml
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
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
|
||||
uses: peaceiris/actions-gh-pages@v3
|
||||
with:
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
publish_branch: gh-pages
|
||||
publish_dir: ./book/public
|
||||
force_orphan: true
|
||||
commit_message: ${{ github.event.head_commit.message }}
|
||||
Reference in New Issue
Block a user