Skip to content

Commit 74d5cfb

Browse files
authored
Merge pull request #228 from rust-lang/nikomatsakis-fix-ci
switch to peaceiris/mdbook github action
2 parents 4a6b237 + 7b3fcfd commit 74d5cfb

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/deploy.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@ jobs:
77
- uses: actions/checkout@v2
88
- name: Install mdbook-mermaid
99
run: cargo install mdbook-mermaid
10-
- uses: XAMPPRocky/[email protected]
10+
- name: Setup mdBook
11+
uses: peaceiris/actions-mdbook@v1
1112
with:
12-
token: ${{ secrets.GITHUB_TOKEN }}
13+
mdbook-version: '0.4.35'
14+
- run: mdbook build
15+
- name: Deploy
16+
uses: peaceiris/actions-gh-pages@v3
17+
if: ${{ github.ref == 'refs/heads/main' }}
18+
with:
19+
github_token: ${{ secrets.GITHUB_TOKEN }}
20+
publish_dir: ./book

0 commit comments

Comments
 (0)