-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (37 loc) · 947 Bytes
/
docs.yaml
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
38
39
40
name: Publish Docs
on:
push:
branches:
- master
paths:
- 'docs/**'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Checkout
uses: actions/setup-node@v1
with:
node-version: 10.x
- name: Setup Hugo
uses: peaceiris/[email protected]
with:
hugo-version: '0.68.3'
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
- name: Prepare Hugo
run: |
git submodule sync && git submodule update --init
- name: Build
run: make docs
- name: add nojekyll
run: touch ./docs/public/.nojekyll
- name: Deploy
uses: peaceiris/[email protected]
with:
emptyCommits: false
env:
ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
PUBLISH_BRANCH: gh-pages
PUBLISH_DIR: ./docs/public