Skip to content

installed necessary packages #31

installed necessary packages

installed necessary packages #31

Workflow file for this run

on:
push:
branches:
- master
name: bookdown
jobs:
renderbook:
runs-on: macOS-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Setup R
uses: r-lib/actions/setup-r@v2
with:
crayon.enabled: 'FALSE'
- name: Install pandoc
uses: r-lib/actions/setup-pandoc@v2
- name: Install dependencies
env:
GITHUB_PAT: ${{ secrets.GH_PAT }}
run: |
options(pkgType = "binary")
options(install.packages.check.source = "no")
install.packages(c("memoiR", "tinytex"))
tinytex::install_tinytex(bundle = "TinyTeX")
tinytex::tlmgr_install("hyphen-french")
shell: Rscript {0}
- name: Render pdf book
run: |
bookdown::render_book("index.Rmd", "bookdown::pdf_book")
shell: Rscript {0}
- name: Render gitbook
run: |
bookdown::render_book("index.Rmd", "bookdown::bs4_book")
shell: Rscript {0}
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: _book
path: docs/
checkout-and-deploy:
runs-on: ubuntu-latest
needs: renderbook
steps:
- name: Download artifact
uses: actions/download-artifact@v4
with:
# Artifact name
name: _book
# Destination path
path: docs
- name: Deploy to GitHub Pages
uses: Cecilapp/GitHub-Pages-deploy@v3
env:
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
with:
email: ${{ secrets.EMAIL }}
build_dir: docs
jekyll: no