Skip to content

Update.

Update. #1

Workflow file for this run

name: render
on:
push:
branches: master
permissions:
contents: write
jobs:
render:
runs-on: ubuntu-latest
steps:
# Checkout this repo
- uses: actions/checkout@v4
# Install R
- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
# Install R packages
- uses: r-lib/actions/setup-r-dependencies@v2
# Install pandoc
- uses: r-lib/actions/setup-pandoc@v2
# Render the rmarkdown file into rmd/
- name: Render Rmarkdown
shell: Rscript {0}
run: rmarkdown::render("diamonds.Rmd", output_dir = "rmd")
# Publish rmd/ to GitHub pages
- name: Publish to GitHub pages 🚀
uses: JamesIves/[email protected]
with:
folder: rmd