Closed lmweber closed 1 year ago
Thanks for the report!
Closing as a duplicate of:
Thanks. I found that other issue when I was searching for a solution, but I don't think this answers the question for my issue.
I understand the difference between the _publish.yml
and publish.yml
(or in my case quarto-publish.yml
) files.
My issue is that the _publish.yml
file is never created when running quarto publish
. Without the _publish.yml
file, GitHub Actions cannot publish the website. If anyone else has any ideas about how to create this file please let me know.
See https://github.com/quarto-dev/quarto-cli/issues/5686#issuecomment-1563361415, especially the screenshot from the documentation highlighting the need to run the command locally first.
Awesome, thank you! This seems to be working now (at least in a new test repo I set up just now).
I thought I tried exactly this (running quarto publish gh-pages
locally first) and it did not work previously, but now it seems to be fine.
Maybe it was due to my existing gh-pages
branch getting in the way previously.
I have now run the following steps, which has worked:
gh-pages
branchgh-pages
branch on GitHubquarto publish gh-pages
locally, which publishes the website to a new gh-pages
branchThe _publish.yml
file that I was referring to above and is mentioned in the documentation is never created or needed.
Again regarding _publish.yml
, this is reported and highlighted in my comment on the other issue.
Bug description
The documentation notes that:
However when I run
quarto publish gh-pages
in my repo, this does not appear to create this file. I have searched through the repo and tried deleting and re-building various parts of the repo (e.g. removing thegh-pages
branch and re-running everything), but can't find the file anywhere. I have also tried running a basic tutorial to create a Quarto project and publish to GitHub Pages, which works correctly, but the_publish.yml
file is never created. Publishing manually withquarto publish
works fine, but publishing with GitHub Actions does not work since the_publish.yml
file is missing.Is it possible to create the
_publish.yml
file manually if it is missing? In this case, where should it be saved, and what should be used for the values of the entries (source
,id
,url
)?I have found the following template on the documentation page, so if it is possible to update this and save it in the correct location, maybe this will work.
Right now I aim getting the following error from GitHub Actions:
Steps to reproduce
No response
Expected behavior
No response
Actual behavior
No response
Your environment
Quarto check output