Skip to content

workflow trigger

workflow trigger #4

Workflow file for this run

name: render
on:workflow_dispatch

Check failure on line 2 in .github/workflows/render-rmd.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/render-rmd.yaml

Invalid workflow file

You have an error in your yaml syntax on line 2
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("index.Rmd", output_dir = "rmd")
# Publish rmd/ to GitHub pages
- name: Publish to GitHub pages 🚀
uses: JamesIves/[email protected]
with:
folder: rmd