Replies: 3 comments 1 reply
-
As you noticed, we are aware of the "publish to GitHub Pages" documentation issue which is a bit outdated and the fact that current default error about missing If you don't use PDF as output, there is no need for TinyTex, if you don't have computations you don't need either Jupyter or R. Note that you have several examples and documentation of GitHub Actions workflows at https://github.com/quarto-dev/quarto-actions. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the quick response! And I should also preface this by saying firstly thank you everyone for writing such a useful piece of software, thanks!
If I understand correctly, What happens if the user doesn't use
Yup, that's totally fair! |
Beta Was this translation helpful? Give feedback.
-
Not too sure if this helps, but I found this video useful: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
Hi there!
I'm trying to create a minimal reprex on my issues with publishing to quarto via gh pages.
My goal is that I want the book to be rebuilt upon pushes to main. I don't want to push HTML content onto the site. I don't want to have to run commands from the command line every time I want to publish to github (although it is cool that that works!)
I see that this is an issue which has been discussed, but I can't actually seem to find an answer to my problem.
My process - following on from https://quarto.org/docs/publishing/github-pages.html#publish-command
quarto publish gh-pages
in the command line of the repo:This then produces a book as a website! Woo!
But my goal is that I want the book to be rebuilt upon pushes to main. I don't want to push HTML content onto the site.
When I push another change to the repo, no new build. See this commit
Follow instructions from quarto website:
So I add a publish.yml file
This then fails:
OK, so I need to have R installed and R packages available now? Perhaps add renv?
Following instructions from: https://rstudio.github.io/renv/articles/ci.html
I add R and renv in this commit
Error due to no lockfile
OK, add a lockfile
But TeX isn't installed:
Alright, so, add tinytex
This worked!
This seems like a fair number of hoops to need to run through, I'm wondering if there's a way to automate a few of these steps? Am I missing something? It seems like I'm probably missing something, but I'd really appreciate some guidance here, as I feel like there's some great opportunities to make this as easy as possible.
Beta Was this translation helpful? Give feedback.
All reactions