Skip to content

Error with helpful message when publishing to Github pages and no gh-pages branch #8161

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 8, 2024

Conversation

cderv
Copy link
Collaborator

@cderv cderv commented Jan 8, 2024

This

gh-pages needs to be existing when publishing with --no-prompt. This could happen when initialiazing a new repo on CI without calling quarto publish gh-pages first locally, or creating the gh-pages branch manually.

This PR adds an error in the function that checks for it to have a more helpful error

`gh-pages` needs to be existing when publishing with `--no-prompt`. This could happen when initialiazing a new repo on CI without calling `quarto publish gh-pages` first locally, or creating the `gh-pages` branch manually.
@cderv cderv linked an issue Jan 8, 2024 that may be closed by this pull request
5 tasks
@cderv
Copy link
Collaborator Author

cderv commented Jan 8, 2024

@cscheid still ok to merge in main ?

@cderv cderv requested a review from cscheid January 8, 2024 15:48
@cscheid
Copy link
Collaborator

cscheid commented Jan 8, 2024

Yes, it is.

@cderv cderv merged commit cd58860 into main Jan 8, 2024
@cderv cderv deleted the publish/gh-pages branch January 8, 2024 19:27
cderv added a commit that referenced this pull request Jan 11, 2024
cderv added a commit that referenced this pull request Jan 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ERROR: No _publish.yml file available gh-actions documentation issues GHA to Github Pages: misleading error + need for documentation
2 participants