Skip to content

reserach page minor update #6

reserach page minor update

reserach page minor update #6

Workflow file for this run

on:
push:
branches:
- main
name: Render and Publish
permissions:
contents: write
pages: write
env:
RENV_PATHS_ROOT: ~/.local/share/renv
jobs:
build-deploy:
runs-on: ubuntu-latest
permissions:
contents: write
pages: write
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up Quarto
uses: quarto-dev/quarto-actions/setup@v2
with:
# To install LaTeX to build PDF book
tinytex: true
# uncomment below and fill to pin a version
# version: SPECIFIC-QUARTO-VERSION-HERE
# From https://github.com/r-lib/actions/tree/v2-branch/setup-r
- name: Setup R
uses: r-lib/actions/setup-r@v2
- name: Set up renv
uses: r-lib/actions/setup-renv@v2
- name: Cache packages
uses: actions/cache@v1
with:
path: ${{ env.RENV_PATHS_ROOT }}
key: ${{ runner.os }}-renv-${{ hashFiles('**/renv.lock') }}
# restore-keys: |
# ${{ runner.os }}-renv-
- name: Restore packages
shell: Rscript {0}
run: |
if (!requireNamespace("renv", quietly = TRUE)) install.packages("renv")
renv::restore()
- name: Render site
uses: quarto-dev/quarto-actions/render@v2
# NOTE: If Publishing to GitHub Pages, set the permissions correctly (see top of this yaml)
#- name: Publish to GitHub Pages (and render)
# uses: quarto-dev/quarto-actions/publish@v2
# with:
# target: gh-pages
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # this secret is always available for github actions