Skip to content

Update4.2

Update4.2 #207

name: call-deploy-book
# running deployment on all branhes to include development verions too
on:
push:
branches:
- "**"
# Only run when book or dependency files change (or this workflow itself)
paths:
- book/**
- requirements.txt
- .github/workflows/call-deploy-book.yml
# Allow manual runs from the GitHub UI
workflow_dispatch:
jobs:
call-workflow:
# Reuse the standard TeachBooks deploy workflow to build and publish the book
uses: TeachBooks/deploy-book-workflow/.github/workflows/deploy-book.yml@main
# Pass repository secrets through to the called workflow
secrets: inherit
permissions:
# Required to read repository content (e.g., during checkout)
contents: read
# Required to publish to GitHub Pages
pages: write
# Required for OIDC authentication during Pages deployment
id-token: write