Skip to content

Commit

Permalink
Update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
hadley committed Oct 2, 2024
1 parent 57a28c4 commit bd71a46
Showing 1 changed file with 6 additions and 15 deletions.
21 changes: 6 additions & 15 deletions .github/workflows/bookdown.yaml → .github/workflows/quarto.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@ on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
workflow_dispatch:

name: bookdown
name: quarto.yml

jobs:
build:
quarto:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -21,19 +20,11 @@ jobs:

- uses: r-lib/actions/setup-r-dependencies@v2

- uses: r-lib/actions/setup-pandoc@v2

- name: Cache bookdown results
uses: actions/cache@v2
with:
path: _bookdown_files
key: bookdown-${{ hashFiles('**/*Rmd') }}
restore-keys: bookdown-
- name: Install Quarto
uses: quarto-dev/quarto-actions/install-quarto@v1

- name: Build site
run: |
bookdown::render_book('index.Rmd', 'bookdown::bs4_book', quiet = TRUE)
shell: Rscript {0}
- name: Render book
run: quarto render

- name: Deploy to GitHub pages 🚀
if: github.event_name != 'pull_request'
Expand Down

0 comments on commit bd71a46

Please sign in to comment.