File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -3,29 +3,29 @@ name: github pages
33on :
44 push :
55 branches :
6- - master
6+ - main
77 pull_request :
88 workflow_dispatch :
99
1010jobs :
1111 deploy :
12- runs-on : ubuntu-20.04
13- concurrency :
14- group : ${{ github.workflow }}-${{ github.ref }}
12+ runs-on : ubuntu-24.04
13+ permissions :
14+ packages : write
15+ contents : read
1516 steps :
16- - uses : actions/checkout@v2
17+ - uses : actions/checkout@v4
1718
1819 - name : Setup mdBook
19- uses : peaceiris/actions-mdbook@v1
20+ uses : peaceiris/actions-mdbook@v2
2021 with :
21- mdbook-version : " 0.4.37"
22- # mdbook-version: 'latest'
22+ mdbook-version : " 0.4.47"
2323
2424 - run : mdbook build
2525
2626 - name : Deploy
27- uses : peaceiris/actions-gh-pages@v3
28- if : ${{ github.ref == 'refs/heads/master' }}
27+ if : github.ref == 'refs/heads/main'
28+ uses : peaceiris/actions-gh-pages@v4
2929 with :
3030 github_token : ${{ secrets.GITHUB_TOKEN }}
3131 publish_dir : ./book
You can’t perform that action at this time.
0 commit comments