-
HI there -- one of the things we love about Quarto is that docs are things that get built. Very much in the software-dev culture. For proof-of-concept purposes I'm committing Markdown/YAML mods to a repo, then This makes publishing easy. And it's OK for me as a developer. But for broader uptake, this "committing object files" approach will perhaps not scale as I'd hoped. Initial feedback I've gotten is that while people will be able to run I'm now doing some research on GitHub Actions, Dockerfiles, Webhooks, etc. etc. and I'm sure I'll come up with a method that does something like:
This will probably all be doable but I thought I'd ask and see if anyone else has already done such a thing & see if there are any lessons learned, best practices, etc. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 19 replies
-
Regarding Quarto in CI, we have started working on Github Actions related to Quarto in https://github.com/quarto-dev/quarto-actions For now, we only have one action to easily install Quarto on all available OS worker in a single easy step (name of action and optionally a pin version). Usually the next step is for someone using this action to run a step with I'll be happy to review any contribution there if you have idea for more actions. We can also add some examples of such workflow that I describe as there is none yet. It is not docker powered but it is working well for Github Action which is the CI you mentioned. |
Beta Was this translation helpful? Give feedback.
-
For posterity here's what I'm currently using:
|
Beta Was this translation helpful? Give feedback.
-
FYI, If you want to define a job with a Docker image with some R packages installed, name: Build and Deploy
on:
push:
branches:
- main
paths:
- "*.qmd"
- "_quarto.yml"
workflow_dispatch:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
container:
image: rocker/verse:latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
- name: Install quarto
run: |
/rocker_scripts/install_quarto.sh
- name: Build site
run: |
quarto render
- name: Deploy 🚀
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs |
Beta Was this translation helpful? Give feedback.
-
Here’s a similar setup to the above ideas, with the added advantage that a Docker image is specified in the .devcontainer folder so that you can do your local work (in VSCode) against an identical computational environment and don’t end up spending time debugging something weird happening in Github Actions that is different from your own environment. https://github.com/jeremiahpslewis/quarto-reproducible-gh-actions |
Beta Was this translation helpful? Give feedback.
-
Documentation on publishing with Quarto is coming very soon. For now,
`quarto publish help`
Supporting publishing to various places directly in I'll update when documentation will be out. |
Beta Was this translation helpful? Give feedback.
Regarding Quarto in CI, we have started working on Github Actions related to Quarto in https://github.com/quarto-dev/quarto-actions
For now, we only have one action to easily install Quarto on all available OS worker in a single easy step (name of action and optionally a pin version).
Usually the next step is for someone using this action to run a step with
quarto render
of a project. And then depending on where the docs are published either to use one of the available actions to publish to github pages or publsih to netlify or any other solution.I'll be happy to review any contribution there if you have idea for more actions. We can also add some examples of such workflow that I describ…