We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a0b310a commit bf929e7Copy full SHA for bf929e7
1 file changed
.github/workflows/gh-pages.yml
@@ -0,0 +1,31 @@
1
+name: github pages
2
+
3
+on:
4
+ push:
5
+ branches:
6
+ - master
7
8
+jobs:
9
+ deploy:
10
+ runs-on: ubuntu-22.04
11
+ steps:
12
+ - uses: actions/checkout@v4
13
+ with:
14
+ submodules: true
15
+ fetch-depth: 0
16
17
+ - name: Setup Hugo
18
+ uses: peaceiris/actions-hugo@v3
19
20
+ hugo-version: 'latest'
21
+ extended: true
22
23
+ - name: Build
24
+ run: hugo --minify
25
26
+ - name: Deploy
27
+ uses: peaceiris/actions-gh-pages@v3
28
+ if: github.ref == 'refs/heads/master'
29
30
+ github_token: ${{ secrets.GITHUB_TOKEN }}
31
+ publish_dir: ./public
0 commit comments