When publish with GitHub Actions, which branch should I push to: gh-pages or main? #6361
-
DescriptionHi! I read the doc on how to publish Quarto presentations with GitHub Actions and see that in
whereas below I see that render and publish uses target branch
Later on it is written that whenever I push to |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
This is working as expected. Quarto docs explains you which configuration you need to do to set up your repository: https://quarto.org/docs/publishing/github-pages.html#source-branch In this workflow
Github Pages offers other way to publish. You could configuration your repo to publish to Github Pages from another branch, or a folder within that branch. Look at the doc. There is also a way to publish to Github pages using Github Actions directly. This is explain in the next chapter. https://docs.github.com/en/pages/getting-started-with-github-pages/configuring-a-publishing-source-for-your-github-pages-site#publishing-with-a-custom-github-actions-workflow
In Quarto doc we recommend a workflow. If you want to use another, you can definitely to it. This has nothing to do with how quarto works. In all case you will render the source file to an output (here a website), and then you can publish this output the way you want. Hope it helps understand |
Beta Was this translation helpful? Give feedback.
Ok, will look at.