We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9b55362 + e510c93 commit 7ecde15Copy full SHA for 7ecde15
1 file changed
.github/workflows/gh-pages.yml
@@ -0,0 +1,38 @@
1
+name: github pages
2
+
3
+on:
4
+ push:
5
+ branches:
6
+ - main # Set a branch to deploy
7
8
+jobs:
9
+ deploy:
10
+ runs-on: ubuntu-22.04
11
+ steps:
12
+ - uses: actions/checkout@v5
13
+ with:
14
+ submodules: true # Fetch Hugo themes (true OR recursive)
15
+ fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
16
17
+ - uses: ruby/setup-ruby@v1
18
19
+ ruby-version: 2.7
20
21
+ - run: gem install asciidoctor rouge
22
23
+ - name: Setup Hugo
24
+ uses: peaceiris/actions-hugo@v3
25
26
+ hugo-version: '0.133.1'
27
+ extended: true
28
29
+ - name: Build
30
+ run: |
31
+ hugo --minify
32
33
+ - name: Deploy
34
+ uses: peaceiris/actions-gh-pages@v4
35
+ if: github.ref == 'refs/heads/main'
36
37
+ github_token: ${{ secrets.GITHUB_TOKEN }}
38
+ publish_dir: ./public
0 commit comments