Skip to content

Commit

Permalink
Update renderbook.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmrollins authored Mar 14, 2024
1 parent 4130450 commit bf34d7b
Showing 1 changed file with 11 additions and 15 deletions.
26 changes: 11 additions & 15 deletions .github/workflows/renderbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ on:

name: renderbook

env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'

jobs:
bookdown:
name: Render-Book
Expand All @@ -17,12 +14,11 @@ jobs:
with:
ref: gh-pages
- uses: r-lib/actions/setup-r@v2
- uses: r-lib/actions/setup-pandoc@v1
- uses: r-lib/actions/setup-pandoc@v2
- name: Install rmarkdown
run: |
Rscript -e 'install.packages(c("rmarkdown","bookdown","HelpersMG","readr","digest"))'
run: Rscript -e 'install.packages(c("rmarkdown","bookdown","HelpersMG","readr"))'

- uses: r-lib/actions/setup-tinytex@v1
- uses: r-lib/actions/setup-tinytex@v2
- name : install tinytex
run: tlmgr --version

Expand All @@ -34,12 +30,13 @@ jobs:
name: docs
path: docs/

# deploy to gh pages yml
build-and-deploy:
runs-on: ubuntu-latest
needs: bookdown
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
persist-credentials: false

Expand All @@ -49,11 +46,10 @@ jobs:
name: docs

- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@releases/v3
uses: JamesIves/github-pages-deploy-action@v4.5.0
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
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

0 comments on commit bf34d7b

Please sign in to comment.