There was an error while loading. Please reload this page.
1 parent 9b55362 commit f17ccc4Copy full SHA for f17ccc4
1 file changed
.github/workflows/gh-pages.yml
@@ -0,0 +1,39 @@
1
+name: github pages
2
+
3
+on:
4
+ push:
5
+ branches:
6
+ - main # Set a branch to deploy
7
+ pull_request:
8
9
+jobs:
10
+ deploy:
11
+ runs-on: ubuntu-22.04
12
+ steps:
13
+ - uses: actions/checkout@v5
14
+ with:
15
+ submodules: true # Fetch Hugo themes (true OR recursive)
16
+ fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
17
18
+ - uses: ruby/setup-ruby@v1
19
20
+ ruby-version: 2.7
21
22
+ - run: gem install asciidoctor rouge
23
24
+ - name: Setup Hugo
25
+ uses: peaceiris/actions-hugo@v3
26
27
+ hugo-version: '0.133.1'
28
+ extended: true
29
30
+ - name: Build
31
+ run: |
32
+ hugo --minify
33
34
+ - name: Deploy
35
+ uses: peaceiris/actions-gh-pages@v4
36
+ if: github.ref == 'refs/heads/main'
37
38
+ github_token: ${{ secrets.GITHUB_TOKEN }}
39
+ publish_dir: ./public
0 commit comments