From 34e1716df667bda8c89d42ace84e5a3ad137162c Mon Sep 17 00:00:00 2001 From: Leo Lara Date: Sat, 18 Nov 2023 20:41:35 +0000 Subject: [PATCH] Publish book --- .github/workflows/api_rust_doc.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/api_rust_doc.yml b/.github/workflows/api_rust_doc.yml index 71a5363d..48542091 100644 --- a/.github/workflows/api_rust_doc.yml +++ b/.github/workflows/api_rust_doc.yml @@ -22,14 +22,24 @@ jobs: mkdir -p ./target/doc echo '' > ./target/doc/index.html + - name: Build book + run: pip install jupyter-book && make book + - name: Add CNAME file to docs root run: | mkdir -p ./target/doc echo 'apidocs.pecadorplonkish.xyz' > ./target/doc/CNAME - - name: Deploy to GitHub Pages + - name: Deploy book + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./book/_build/html + destination_dir: ./docs + + - name: Deploy Api docs uses: peaceiris/actions-gh-pages@v3 with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ./target/doc - destination_dir: ./docs \ No newline at end of file + destination_dir: ./docs/apidocs \ No newline at end of file