-
-
Notifications
You must be signed in to change notification settings - Fork 11
37 lines (30 loc) · 841 Bytes
/
doc.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Documentation
on:
push:
branches:
- master
- main
jobs:
main:
name: Main Process
runs-on: ubuntu-latest
env:
HUGO_VERSION: 0.54.0
steps:
# https://github.com/marketplace/actions/checkout
- name: Check out code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Hugo
run: |
wget -O /tmp/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_${HUGO_VERSION}_Linux-64bit.deb
sudo dpkg -i /tmp/hugo.deb
- name: Build Documentation
run: make docs-build
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
publish_dir: docs/public
force_orphan: true
github_token: ${{ secrets.GH_TOKEN_REPO }}