CI: Publish correct book path

zcash/halo2#713 added a second renderer to mdBook, and it turns out
that causes mdBook to generate subfolders that it doesn't do with a
single renderer. We now handle the presence of the subfolders when
publishing the book to GitHub Pages.
This commit is contained in:
Jack Grigg 2023-01-20 21:18:42 +00:00
parent 53639f9cc3
commit 5e51272551
1 changed files with 3 additions and 3 deletions

View File

@ -50,14 +50,14 @@ jobs:
- name: Move latest rustdocs into book
run: |
mkdir -p ./book/book/rustdoc
mv ./target/doc ./book/book/rustdoc/latest
mkdir -p ./book/book/html/rustdoc
mv ./target/doc ./book/book/html/rustdoc/latest
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./book/book
publish_dir: ./book/book/html
- name: Upload PDF File to Artifact
uses: actions/upload-artifact@v3