File tree Expand file tree Collapse file tree 1 file changed +10
-9
lines changed
Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -3,30 +3,31 @@ name: github pages
33on :
44 push :
55 branches :
6- - main # Set a branch to deploy
6+ - main
77 pull_request :
88
99jobs :
1010 deploy :
11- runs-on : ubuntu-20.04
11+ runs-on : ubuntu-latest
1212 steps :
13- - uses : actions/checkout@v2
13+ - uses : actions/checkout@v4
1414 with :
15- submodules : true # Fetch Hugo themes (true OR recursive)
16- fetch-depth : 0 # Fetch all history for .GitInfo and .Lastmod
15+ submodules : true
16+ fetch-depth : 0
1717
1818 - name : Setup Hugo
19- uses : peaceiris/actions-hugo@v2
19+ uses : peaceiris/actions-hugo@v3
2020 with :
21- hugo-version : ' latest '
21+ hugo-version : ' 0.152.2 '
2222 extended : true
2323
2424 - name : Build
2525 run : hugo --minify
2626
2727 - name : Deploy
28- uses : peaceiris/actions-gh-pages@v3
28+ uses : peaceiris/actions-gh-pages@v4
2929 if : github.ref == 'refs/heads/main'
3030 with :
3131 github_token : ${{ secrets.GITHUB_TOKEN }}
32- publish_dir : ./public
32+ publish_dir : ./public
33+ publish_branch : master
You can’t perform that action at this time.
0 commit comments