Skip to content

Commit 174940f

Browse files
Change gh pages deploy workflow
1 parent 4c2afc5 commit 174940f

File tree

1 file changed

+17
-4
lines changed

1 file changed

+17
-4
lines changed

.github/workflows/deploy-gh-pages.yaml

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,23 @@ on:
66
- 'master'
77

88
jobs:
9-
build:
10-
runs-on: ubuntu-latest
9+
deploy:
10+
runs-on: ubuntu-22.04
11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.ref }}
1113
steps:
1214
- uses: actions/checkout@v2
13-
- uses: XAMPPRocky/deploy-mdbook@v1.1
15+
16+
- name: Setup mdBook
17+
uses: peaceiris/actions-mdbook@v1
18+
with:
19+
mdbook-version: 'latest'
20+
21+
- run: mdbook build
22+
23+
- name: Deploy
24+
uses: peaceiris/actions-gh-pages@v3
25+
if: ${{ github.ref == 'refs/heads/main' }}
1426
with:
15-
token: ${{ secrets.GITHUB_TOKEN }}
27+
github_token: ${{ secrets.GITHUB_TOKEN }}
28+
publish_dir: ./book

0 commit comments

Comments
 (0)