problem 6 #88
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: Publish the book | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - spring2026 | |
| jobs: | |
| publish: | |
| name: Publish | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout the branch | |
| uses: actions/checkout@v2.3.1 | |
| with: | |
| persist-credentials: false | |
| - name: Set up Python 3.13 | |
| uses: actions/setup-python@v1 | |
| with: | |
| python-version: 3.13 | |
| - name: Build the book | |
| env: | |
| BASE_URL: /${{ github.event.repository.name }} | |
| run: | | |
| pip install -r requirements.txt | |
| jupyter book build --execute --html | |
| # Push the book's HTML to github-pages | |
| - name: GitHub Pages action | |
| uses: peaceiris/actions-gh-pages@v3.6.1 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: ./_build/html |