Skip to content

Added R_LIBS_USER: ~/.R/library #11

Added R_LIBS_USER: ~/.R/library

Added R_LIBS_USER: ~/.R/library #11

name: Publish Website
on:
workflow_dispatch:
push:
branches:
- main
jobs:
publish:
name: Build & Deploy
runs-on: ubuntu-latest
permissions:
contents: write
strategy:
max-parallel: 1
steps:

Check failure on line 17 in .github/workflows/quarto-deploy-gh-pages.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/quarto-deploy-gh-pages.yml

Invalid workflow file

You have an error in your yaml syntax on line 17
- name: Check out repository
uses: actions/checkout@v3
- name: Create R Library Directory
run: mkdir -p ~/.R/library
- name: Install R Packages
run: |
R -e 'install.packages(c("knitr", "rmarkdown", "checkmate"), lib="~/.R/library")'
env:
R_LIBS_USER: ~/.R/library
- name: Setup Quarto
uses: quarto-dev/quarto-actions/setup@v2
- name: Render Quarto Project
env:
R_LIBS_USER: ~/.R/library
run: quarto render --output-dir _site
shell: bash
- name: Publish Project
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./_site