Skip to content

Commit

Permalink
more fixes to github actions build and deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
kyleniemeyer committed Jan 3, 2025
1 parent 247ca89 commit f8bcda6
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions .github/workflows/deploy-book.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit f8bcda6

Please sign in to comment.