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