We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 27f0404 commit 5badbe7Copy full SHA for 5badbe7
.github/workflows/hugo.yaml
@@ -0,0 +1,34 @@
1
+name: GitHub Pages
2
+
3
+on:
4
+ push:
5
+ branches:
6
+ - main
7
8
+jobs:
9
+ build-deploy:
10
+ runs-on: ubuntu-20.04
11
+ concurrency:
12
+ group: ${{ github.workflow }}-${{ github.ref }}
13
+ steps:
14
+ - name: Checkout
15
+ uses: actions/checkout@v3
16
+ with:
17
+ submodules: true
18
+ fetch-depth: 0
19
20
+ - name: Setup Hugo
21
+ uses: peaceiris/actions-hugo@v2
22
23
+ hugo-version: "latest"
24
25
+ - name: Build
26
+ run: hugo --minify
27
28
+ - name: Deploy
29
+ uses: peaceiris/actions-gh-pages@v3
30
+ if: ${{ github.ref == 'refs/heads/main' }}
31
32
+ github_token: ${{ secrets.GITHUB_TOKEN }}
33
+ publish_branch: gh-pages
34
+ publish_dir: ./public
0 commit comments