Skip to content

Commit 19da6d2

Browse files
authored
.github: Fix CI
1 parent aa0fe95 commit 19da6d2

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

.github/workflows/gh-pages.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,29 +3,29 @@ name: github pages
33
on:
44
push:
55
branches:
6-
- master
6+
- main
77
pull_request:
88
workflow_dispatch:
99

1010
jobs:
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

0 commit comments

Comments
 (0)