Building mdbook docs
@@ -8,15 +8,17 @@ jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- - name: Checkout
- uses: actions/checkout@v2
+ - uses: actions/checkout@v2
+
+ - name: Setup mdBook
+ uses: peaceiris/actions-mdbook@v1
with:
- persist-credentials: false
+ mdbook-version: 'latest'
+
+ - run: mdbook build
- name: Deploy
- uses: crazy-max/ghaction-github-pages@v1
+ uses: peaceiris/actions-gh-pages@v3
with:
- target_branch: gh-pages
- build_dir: doc
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
\ No newline at end of file
+ github_token: ${{ secrets.GITHUB_TOKEN }}
+ publish_dir: ./book
\ No newline at end of file
