Draft
Conversation
Co-authored-by: AnthonyTSV <93186473+AnthonyTSV@users.noreply.github.com>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix deploy-book workflow to prevent EISDIR errors and build failures
This PR addresses the failing deploy-book GitHub Actions job (ref: https://github.com/AnthonyTSV/DatZB011/actions/runs/19132032446/job/54674903331, workflow ref: 92e930b)
Completed Changes
Key Improvements
rm -rf _jb_srcbefore rsync and excluded.gitand_jb_srcdirectoriesis_file()check and exception handling in the conversion script0.13.*and added myst-parser-v) to build command and improved error messagesAll changes have been tested locally and validated for syntax correctness.
Original prompt
Problem
The GitHub Actions job deploy-book is failing when running "jupyter-book build _jb_src" with errors like:
Investigation
I inspected the workflow file at .github/workflows/deploy.yml (ref: 92e930b) and found these fragile behaviours:
Goal
Produce a repository patch that makes the workflow robust, prevents recursion, guards the conversion step against reading non-files, pins a compatible jupyter-book version, and adds pre-build checks and better diagnostic output so the CI can either succeed or show clear, actionable errors.
Changes to make
.github/workflows/deploy.yml: Replace the problematic steps with safer implementations:
No other repository files need content changes.
Proposed new .github/workflows/deploy.yml content
(Replace the current file with the following content)
name: deploy-book
on:
push:
branches: [main, master]
permissions:
pages: write
id-token: write
contents: read
jobs:
deploy-book:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
This pull request was created as a result of the following prompt from Copilot chat.
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.