From 6517640726ac5879f7aec872de9c91886a5a1690 Mon Sep 17 00:00:00 2001 From: Sequoia Ploeg <36747422+sequoiap@users.noreply.github.com> Date: Wed, 8 Feb 2023 09:46:59 -0700 Subject: [PATCH] Change deploy action --- .github/workflows/pages.yml | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index 42400dc..9779baf 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -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: | @@ -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