Fix indexing in yield example #235
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | |