-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d058f53
commit 92aa27d
Showing
1 changed file
with
8 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,13 +5,12 @@ on: | |
push: | ||
branches: | ||
- dev | ||
paths: | ||
- docs/** | ||
|
||
jobs: | ||
preview-book: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
pages: write | ||
id-token: write | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
|
@@ -28,14 +27,11 @@ jobs: | |
# Build the book | ||
- name: Build the book | ||
run: | | ||
jupyter-book build docs/src # Adjust path if necessary | ||
jupyter-book build docs/src | ||
# Deploy to GitHub Pages Preview | ||
- name: Deploy to GitHub Pages Preview | ||
uses: peaceiris/actions-gh-pages@v3 | ||
# Upload the book's HTML as an artifact | ||
- name: Upload artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: docs/src/_build/html # Adjust path if necessary | ||
publish_branch: gh-pages-preview | ||
user_name: "github-actions" | ||
user_email: "[email protected]" | ||
name: book-preview | ||
path: docs/src/_build/html # Adjust path if necessary |