We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 99e67b6 commit 41c0881Copy full SHA for 41c0881
.github/workflows/github-pages.yml
@@ -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
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
35
+ github_token: ${{ secrets.GITHUB_TOKEN }}
36
+ publish_dir: ./public
37
+ cname: localstack.cloud
0 commit comments