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