Skip to content

Commit

Permalink
Change deploy action
Browse files Browse the repository at this point in the history
  • Loading branch information
sequoiap authored Feb 8, 2023
1 parent fafb34f commit 6517640
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,12 @@ jobs:
deploy-book:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

# Install dependencies
- name: Set up Python 3.8
uses: actions/setup-python@v2
- uses: actions/checkout@v3

- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: 3.8
python-version: '3.10'

- name: Install dependencies
run: |
Expand All @@ -32,11 +31,13 @@ jobs:
# Build the book
- name: Build the book
run: |
jupyter-book build book
# Push the book's HTML to github-pages
- name: GitHub Pages action
uses: peaceiris/actions-gh-pages@v3.6.1
jb build book
# Configures GitHub Pages
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./_build/html
folder: book/_build/html # The folder the action should deploy.
clean: true
clean-exclude: |
.nojekyll

0 comments on commit 6517640

Please sign in to comment.