-
Notifications
You must be signed in to change notification settings - Fork 4
41 lines (36 loc) · 985 Bytes
/
gh-pages.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
38
39
40
41
name: Documentation
on:
release:
types:
- created
jobs:
gh-pages:
env:
GOPATH: ${{ github.workspace }}
WORKING_PATH: ${{ github.workspace }}/src/github.com/${{ github.repository }}
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
path: ${{env.WORKING_PATH}}
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.16.x
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.68.2'
extended: true
- name: Setup Outline
run: go get github.com/mcuadros/outline
- name: Hugo Build
run: make hugo-build
working-directory: ${{env.WORKING_PATH}}
- name: Push to gh-pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: src/github.com/${{ github.repository }}/_site/public
cname: ascode.run