diff --git a/.github/workflows/deploy-book.yml b/.github/workflows/deploy-book.yml index bc59cdd..997ed62 100644 --- a/.github/workflows/deploy-book.yml +++ b/.github/workflows/deploy-book.yml @@ -8,14 +8,8 @@ on: # This job installs dependencies, build the book, and pushes it to `gh-pages` jobs: - deploy-book: + build: runs-on: ubuntu-latest - permissions: - pages: write - id-token: write - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} steps: - uses: actions/checkout@v4 @@ -47,6 +41,20 @@ jobs: with: path: "./book/_build/html" + deploy: + needs: build + + permissions: + pages: write + id-token: write + + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + + runs-on: ubuntu-latest + steps: + # Deploy the book's HTML to GitHub Pages - name: Deploy to GitHub Pages id: deployment