mirror of https://github.com/zcash/halo2.git
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:
parent
53639f9cc3
commit
5e51272551
|
@ -50,14 +50,14 @@ jobs:
|
||||||
|
|
||||||
- name: Move latest rustdocs into book
|
- name: Move latest rustdocs into book
|
||||||
run: |
|
run: |
|
||||||
mkdir -p ./book/book/rustdoc
|
mkdir -p ./book/book/html/rustdoc
|
||||||
mv ./target/doc ./book/book/rustdoc/latest
|
mv ./target/doc ./book/book/html/rustdoc/latest
|
||||||
|
|
||||||
- name: Deploy to GitHub Pages
|
- name: Deploy to GitHub Pages
|
||||||
uses: peaceiris/actions-gh-pages@v3
|
uses: peaceiris/actions-gh-pages@v3
|
||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
publish_dir: ./book/book
|
publish_dir: ./book/book/html
|
||||||
|
|
||||||
- name: Upload PDF File to Artifact
|
- name: Upload PDF File to Artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
|
|
Loading…
Reference in New Issue