Skip to content

Update renderbook.yml #91

Update renderbook.yml

Update renderbook.yml #91

Workflow file for this run

on:
pull_request:
branches:
types:
name: renderbook
jobs:
bookdown:
name: Render-Book
runs-on: macOS-latest
steps:
- uses: actions/checkout@v4
with:
ref: gh-pages
- uses: r-lib/actions/setup-r@v2
- uses: r-lib/actions/setup-pandoc@v2
- name: Install rmarkdown
run: Rscript -e 'install.packages(c("rmarkdown","bookdown","HelpersMG","readr"))'
- uses: r-lib/actions/setup-tinytex@v2
- name : install tinytex
run: tlmgr --version
- name: Render Book
run: |
Rscript -e 'bookdown::render_book("index.Rmd", "bookdown::gitbook", output_dir="docs")'
- uses: actions/upload-artifact@v1
with:
name: docs
path: docs/
# deploy to gh pages yml
build-and-deploy:
runs-on: ubuntu-latest
needs: bookdown
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Download Artifacts 🔻 # The built project is downloaded into the 'site' folder.
uses: actions/download-artifact@v1
with:
name: docs
- name:# Deploy 🚀
uses: #JamesIves/github-pages-deploy-action@v3

Check failure on line 49 in .github/workflows/renderbook.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/renderbook.yml

Invalid workflow file

You have an error in your yaml syntax on line 49
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: docs
TARGET_FOLDER: docs # The folder the action should deploy.
CLEAN: true
PRESERVE: true