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
GHA to Github Pages: misleading error + need for documentation #4498
Comments
As of today, the documentation includes a sentence to that matter:
|
The improved docs help, but this error seems to occur on any kind of failure of the gh-pages push. It appears that the statement If the error message is indeed erroneous in for |
@cboettig Can you point me to the repository where you're having trouble so we can look at the actions and their logs? |
The message is triggered on non interactive run of the quarto create project website gh-pages
cd gh-pages
quarto render
git init
gh repo create quarto-gh-pages2 --public
git remote add origin https://github.com/mcanouil/quarto-gh-pages2.git
echo "/_site/" > .gitignore
echo "/.quarto/" >> .gitignore
git add . .gitignore
git commit -m "chore: initial commit"
git push origin main
# Add publish GHA
# Trigger GHA -> fail
quarto publish gh-pages
git push origin :gh-pages
# Trigger GHA -> success |
Thanks @cscheid ! Yup, @mcanouil example is the best minimal way to trigger this. This morning I keep seeing this when trying to use quarto publish in a gh-action that is running inside a container. (https://github.com/eco4cast/tern4cast/actions/runs/5083003306/jobs/9133443385) It has a gh-pages branch which I can update locally in that case, but throws the same error. (I think this is because I'm failing to authenticate to github for the push, but haven't tracked down why). |
This is indeed in fact a problem in error message and not just documentation. From @mcanouil example (#4498 (comment)), it can be reproduce even without CI when doing The deployment does not work because This is what I'll have a PR to error more correctly for this. |
When using the
publish
action on GHA as per documentation, I ended up with the following error:ERROR: No _publish.yml file available (_publish.yml specifying a destination required for non-interactive publish)
.As it turns out, the actual problem was that
quarto publish gh-pages
had not been run locally, as the documentation for the action suggests one does before running the action. After doing this, the action ran as expected, without the need for any other tweaks and also without needing to include a_publish.yml
file.It would be helpful if
gh-pages
branch?)quarto publish gh-pages
locally.The text was updated successfully, but these errors were encountered: