Skip to content

Update index.Rmd to link to other languages #31

Update index.Rmd to link to other languages

Update index.Rmd to link to other languages #31

Workflow file for this run

name: Build and Deploy
on: ["push", "pull_request"]
jobs:
build_job:
runs-on: ubuntu-20.04
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
ref: 'main'
persist-credentials: false
- name: Install Ubuntu Packages
run: sudo apt-get update; sudo apt-get install -y libcurl4-openssl-dev pandoc pandoc-citeproc texlive texlive-xetex biber
- name: Setup R
uses: r-lib/actions/setup-r@v1
with:
r-version: '4.1.1'
- name: Install renv
run: Rscript -e 'install.packages("renv")'
- uses: actions/cache@v2
with:
path: ~/.local/share/renv
key: ${{ runner.os }}-renv-v1-${{ hashFiles('**/renv.lock') }}
restore-keys: |
${{ runner.os }}-renv-v1-
- name: Install packages
working-directory: Book
run: Rscript -e 'renv::restore()'
- name: Run bookdown for html and epub
run: |
Rscript -e "bookdown::render_book('index.Rmd', 'bookdown::gitbook')"
Rscript -e "bookdown::render_book('index.Rmd', 'bookdown::epub_book')"
working-directory: Book
- name: Run bookdown to make pdf
run: |
Rscript -e "bookdown::render_book('index.Rmd', 'bookdown::pdf_book')"
working-directory: Book
- name: Push to gh-pages
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
uses: JamesIves/github-pages-deploy-action@4.1.4
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: Book/_book