Skip to content

Commit

Permalink
actually add GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
orladoylenvs committed Aug 12, 2024
1 parent d9593ef commit 28abce5
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 0 deletions.
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
^\.github$
1 change: 1 addition & 0 deletions .github/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.html
34 changes: 34 additions & 0 deletions .github/workflows/render-rmd.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: render
on:
push:
branches: main
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

0 comments on commit 28abce5

Please sign in to comment.