Skip to content

Commit 0372202

Browse files
Jakub Konkakubkon
authored andcommitted
Use actions-mdbook to setup mdbook
1 parent 36530e2 commit 0372202

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -119,15 +119,14 @@ jobs:
119119
toolchain: stable
120120
override: true
121121
- name: Install mdbook
122-
run: |
123-
set -e
124-
curl -L https://github.com/rust-lang/mdBook/releases/download/v0.3.5/mdbook-v0.3.5-x86_64-unknown-linux-gnu.tar.gz | tar xzf -
125-
echo ::add-path::`pwd`
122+
uses: peaceiris/actions-mdbook@v1
123+
with:
124+
mdbook-version: '0.3.5'
126125
- run: cd doc && mdbook build
127126
- name: Push to gh-pages
128127
uses: peaceiris/actions-gh-pages@v2
129128
env:
130129
ACTIONS_DEPLOY_KEY: ${{ secrets.GITHUB_DEPLOY_KEY }}
131130
PUBLISH_BRANCH: gh-pages
132-
PUBLISH_DIR: ./doc/build
131+
PUBLISH_DIR: ./doc/book
133132
if: github.event_name == 'push' && github.event.ref == 'refs/heads/master'

0 commit comments

Comments
 (0)