Skip to content

Commit

Permalink
Add render github action
Browse files Browse the repository at this point in the history
  • Loading branch information
martinherrerias committed Nov 27, 2024
1 parent 4b0decc commit 1bcb50e
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 3 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/render-quarto.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Render and Deploy Quarto Document

on:
push:
branches:
- main

jobs:
render:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up Quarto
uses: quarto-dev/quarto-actions/setup@v2

- name: Install include-code-files extension
run: quarto add quarto-ext/include-code-files

- name: Render Quarto document
run: quarto render functions.qmd --output-dir ./docs

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
_extensions

*_files/libs
*.html
docs
/.quarto/
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# R Functions

A beginner-friendly introduction to R functions.

## Rendering
Example scripts are provided in the `R` directory.


## Rendering Slides Locally

1. Install [R](https://www.r-project.org/) and [Quarto](https://quarto.org/docs/get-started/).

Expand Down

0 comments on commit 1bcb50e

Please sign in to comment.