Skip to content

Commit

Permalink
Add workflow for R Markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
herreio committed Dec 6, 2024
1 parent 028371e commit 49e9391
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/render-rmarkdown.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help

name: Render R Markdown

on:
push:
branches:
- main
paths:
- 'docs/**'
- 'data/**'
- 'utils/render'
- '.github/workflows/render-rmarkdown.yml'
- 'renv.lock'
workflow_dispatch:

permissions: read-all

jobs:
render-rmarkdown:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
permissions:
contents: write
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: r-lib/actions/setup-pandoc@v2

- uses: r-lib/actions/setup-r@v2

- uses: r-lib/actions/setup-renv@v2

- name: Build site
run: utils/render

- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
clean: true
branch: gh-pages
folder: public

0 comments on commit 49e9391

Please sign in to comment.