diff --git a/.github/workflows/deploy-book.yml b/.github/workflows/deploy-book.yml index 9d32d7b..1c9aaba 100644 --- a/.github/workflows/deploy-book.yml +++ b/.github/workflows/deploy-book.yml @@ -91,26 +91,14 @@ jobs: run: ipython kernel install --name "julia-1.11" --user - name: Build website run: jupyter-book build . - - name: Upload pages artifact - if: ${{ github.ref == 'refs/heads/main' }} - uses: actions/upload-pages-artifact@v4 + # Upload the book's HTML as an artifact + - name: Upload artifact + uses: actions/upload-pages-artifact@v2 with: - path: _build/html/ + path: "_build/html" - # Deploy pages - deploy: - if: ${{ github.ref == 'refs/heads/main' }} - # Grant GITHUB_TOKEN the permissions required to make a Pages deployment - permissions: - pages: write # to deploy to Pages - id-token: write # to verify the deployment originates from an appropriate source - actions: read # to download an artifact uploaded by `actions/upload-pages-artifact@v3` - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} - runs-on: ubuntu-latest - steps: - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v4 + # Deploy the book's HTML to GitHub Pages + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v2