Skip to content

ggplot2 added

ggplot2 added #18

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:
- 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", "emoji", "testthat", "covr", "dplyr", "ggplot2"), 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