File tree Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Original file line number Diff line number Diff line change 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+ with :
20+ ruby-version : 2.7
21+
22+ - run : gem install asciidoctor rouge
23+
24+ - name : Setup Hugo
25+ uses : peaceiris/actions-hugo@v3
26+ with :
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+ with :
38+ github_token : ${{ secrets.GITHUB_TOKEN }}
39+ publish_dir : ./public
You can’t perform that action at this time.
0 commit comments