Replies: 3 comments 7 replies
-
I went through a similar conundrum with a course website: how to handle the rendering and publishing via CI. I didn't want to have to fully reproduce the compute environment on the GHA machine, so I opted for https://github.com/stat20/course-materials/blob/main/.github/workflows/publish-full.yml This is all in R, not Julia, but my understanding of the render and freeze functionality is that it'd be the same regardless of if it's knitr or jupyter handling the compute. Happy to take a look at your GHA, though I'm no pro at those. |
Beta Was this translation helpful? Give feedback.
-
In some cases, the kernel to be used might not be properly detected, I'd recommend you to set it explicitly, see #4218. Also note that Quarto Actions do not setup R/Python/Julia/etc., thus you need to add the appropriate step into your GitHub Actions Workflow. EDIT: if you really want no computations at all, use |
Beta Was this translation helpful? Give feedback.
-
@dmbates Using freeze should indeed not require Julia in your CI when re rendering. The approach of freezing for CI rendering is mentionned in https://quarto.org/docs/publishing/ci.html#rendering-for-ci But this means you need to commit in your github repository the This is explained for example in the Github Pages and Github Action part: https://quarto.org/docs/publishing/github-pages.html#github-action
So rendering everything locally with You can find that @andrewpbray example has correctly the Hope it helps |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have been looking at the way that I currently have a Quarto book with Julia code chunks being rendered to gh-pages. (Book is at https://JuliaMixedModels.github.io/EmbraceUncertainty).
If I understand the documents at https://quarto.org/docs/publishing/github-pages.html#freezing-computations correctly then setting
freeze: auto
in_quarto.yml
and rendering the book will save the output of the code chunks in the_freeze
directory (which I do have committed in the repository).I was hoping that I could then render the book in a github action without the need to configure Jupyter and a Julia kernel. However, the render and publish step fails because it can't access the kernel. (I am actually experimenting on another, private repository but can pull back the curtains if my description is too vague.)
Should this be happening or have I misconfigured the github action? In other words, is there a way I can configure the github action so that Quarto recognizes that it will use the results in the _freeze directory and can ignore the jupyter specification in the files?
An alternative approach, although perhaps less efficient, would be to get a recipe for configuring a Julia kernel in Jupyter for the github action.
Beta Was this translation helpful? Give feedback.
All reactions