Skip to content

add metadata

add metadata #214

Workflow file for this run

on:
workflow_dispatch:
push:
branches: main
name: Quarto Publish
jobs:
build-deploy:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Cache R packages
uses: actions/cache@v3
with:
path: ${{ env.R_LIBS_USER }}
key: ${{ runner.os }}-r-${{ hashFiles('**/DESCRIPTION') }}
restore-keys: |
${{ runner.os }}-r-
- name: Set up R
uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
- name: Install R packages
run: |
Rscript -e "install.packages(c('curl', 'whoami', 'httr', 'here', 'DT', 'readxl', 'dplyr','ggplot2','tidyverse','openalexR'))"
- name: Install babelquarto package
run: |
Rscript -e "install.packages('babelquarto', repos = c('https://ropensci.r-universe.dev', 'https://cloud.r-project.org'))"
- name: Check R package installation
run: |
Rscript -e "library(httr)"
Rscript -e "library(babelquarto)"
Rscript -e "library(here)"
Rscript -e "library(DT)"
Rscript -e "library(readxl)"
Rscript -e "library(dplyr)"
Rscript -e "library(ggplot2)"
- name: Set up Quarto
uses: quarto-dev/quarto-actions/setup@v2
- name: Render website with BabelQuarto
run: Rscript -e 'babelquarto::render_website()'
- name: Deploy
uses: quarto-dev/quarto-actions/publish@v2
with:
render: "false"
path: docs
target: gh-pages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}