-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (36 loc) · 1.13 KB
/
render_readme.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#' This workflow renders README.qmd to "github flavored markdown" (GFM)
#' README.md. GFM renders nicely when viewed on GitHub, although it does not
#' have all the full features of HTML output. It is useful for sharing simple
#' reports without having to worry about publishing a website. But, if you're
#' interested in that, see the validation_report.yaml example.
#'
on:
workflow_dispatch
# push:
# branches: main
# pull_request:
# branches: main
name: Render README
jobs:
build-deploy:
runs-on: ubuntu-latest
env:
RENV_CONFIG_PAK_ENABLED: TRUE
permissions:
contents: write
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up Quarto
uses: quarto-dev/quarto-actions/setup@v2
- name: Setup R
uses: r-lib/actions/setup-r@v2
with:
r-version: "renv" #use the same version of R recorded in renv.lock
- name: Install R packages
uses: r-lib/actions/setup-renv@v2
- name: Render
uses: quarto-dev/quarto-actions/render@v2
with:
to: gfm
path: README.qmd