Skip to content

Commit

Permalink
Changed book preview
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexandreAdam committed Jul 8, 2024
1 parent d058f53 commit 92aa27d
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions .github/workflows/preview_book.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

0 comments on commit 92aa27d

Please sign in to comment.