Skip to content

Update old urls

Update old urls #65

Workflow file for this run

on:
push:
branches:
- main
workflow_dispatch:
name: bookdown
jobs:
build:
runs-on: macOS-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Setup R
uses: r-lib/actions/setup-r@v1
- name: Install pandoc
uses: r-lib/actions/setup-pandoc@v1
- name: Cache Renv packages
uses: actions/cache@v2
with:
path: ${{ env.R_LIBS_USER }}
key: r-${{ hashFiles('renv.lock') }}
restore-keys: r-
- name: Cache bookdown results
uses: actions/cache@v2
with:
path: _bookdown_files
key: bookdown-${{ hashFiles('**/*Rmd') }}
restore-keys: bookdown-
- name: Install packages
run: |
R -e 'install.packages("renv")'
R -e 'renv::restore()'
- name: Deploy bookdown
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Actions"
Rscript -e 'source("scripts/functions.R"); deploy_bookdown()'