Skip to content

Commit 41c0881

Browse files
committed
add github workflow to build docs
1 parent 99e67b6 commit 41c0881

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

Diff for: .github/workflows/github-pages.yml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# adapted from https://github.com/peaceiris/actions-gh-pages
2+
3+
name: github pages
4+
5+
on:
6+
push:
7+
branches:
8+
- main
9+
pull_request:
10+
11+
jobs:
12+
deploy:
13+
runs-on: ubuntu-18.04
14+
steps:
15+
- uses: actions/checkout@v2
16+
17+
- name: Setup Hugo
18+
uses: peaceiris/actions-hugo@v2
19+
with:
20+
hugo-version: '0.83.1'
21+
extended: true
22+
23+
- name: Setup Node
24+
uses: actions/setup-node@v2
25+
with:
26+
node-version: '14'
27+
28+
- run: npm ci
29+
- run: hugo --gc --minify
30+
31+
- name: Deploy
32+
uses: peaceiris/actions-gh-pages@v3
33+
if: github.ref == 'refs/heads/main'
34+
with:
35+
github_token: ${{ secrets.GITHUB_TOKEN }}
36+
publish_dir: ./public
37+
cname: localstack.cloud

0 commit comments

Comments
 (0)