File tree Expand file tree Collapse file tree 2 files changed +13
-7
lines changed
Expand file tree Collapse file tree 2 files changed +13
-7
lines changed Original file line number Diff line number Diff line change 55 branches : [master]
66 paths :
77 - ' docs/**'
8+ workflow_dispatch : # Allow manual triggering
89
910jobs :
1011 deploy :
11- runs-on : ubuntu-20.04
12+ runs-on : ubuntu-latest
13+ # Add permissions for GitHub Pages deployment
14+ permissions :
15+ contents : read
16+ pages : write
17+ id-token : write
1218 steps :
13- - uses : actions/checkout@v2
19+ - uses : actions/checkout@v4
1420 with :
15- ref : master
16- submodules : true
17- fetch-depth : 1
21+ submodules : recursive
22+ fetch-depth : 0
1823
1924 - name : Setup Hugo
2025 uses : peaceiris/actions-hugo@v3
2833
2934 - name : Deploy
3035 uses : peaceiris/actions-gh-pages@v3
31- if : github.ref == 'refs/heads/master'
36+ if : github.ref == 'refs/heads/master' || github.event_name == 'workflow_dispatch'
3237 with :
3338 commit_message : ${{ github.event.head_commit.message }}
3439 github_token : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 11/public /
2- /resources /_gen /
2+ /resources /_gen /
3+ .hugo_build.lock
You can’t perform that action at this time.
0 commit comments