Skip to content

Create FUNDING.yml

Create FUNDING.yml #30

Workflow file for this run

# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
name: bookdown
jobs:
bookdown:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
R_KNITR_OPTIONS: "knitr.chunk.tidy=TRUE"
steps:
- name: Checkout Repo
uses: actions/checkout@v2
- uses: r-lib/actions/setup-pandoc@v2
with:
pandoc-version: '2.13'
- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
- name: Install TinyTeX
uses: r-lib/actions/setup-tinytex@v2
env:
# install full prebuilt version
TINYTEX_INSTALLER: TinyTeX
- uses: r-lib/actions/setup-r-dependencies@v2
with:
needs: deploy
- name: Install missing system dependencies
if: runner.os == 'Linux'
run: sudo apt-get install -y ghostscript
- name: Cache bookdown results
uses: actions/cache@v2
with:
path: _bookdown_files
key: bookdown-${{ hashFiles('**/*Rmd') }}
restore-keys: bookdown-
- name: Build Gitbook
if: github.event_name == 'pull_request'
run: make gitbook
- name: Build and Deploy all book
if: github.event_name == 'push'
env:
CONNECT_API_KEY: ${{ secrets.RSC_BOOKDOWN_ORG_TOKEN }}
CONTENT_ID: c4506062-503b-4747-bcd8-490dd76620cb
run: make all