From bd71a46edd12bd3576629d7b229f96f022c49968 Mon Sep 17 00:00:00 2001 From: Hadley Wickham Date: Wed, 2 Oct 2024 07:47:16 -0500 Subject: [PATCH] Update workflow --- .../workflows/{bookdown.yaml => quarto.yaml} | 21 ++++++------------- 1 file changed, 6 insertions(+), 15 deletions(-) rename .github/workflows/{bookdown.yaml => quarto.yaml} (55%) diff --git a/.github/workflows/bookdown.yaml b/.github/workflows/quarto.yaml similarity index 55% rename from .github/workflows/bookdown.yaml rename to .github/workflows/quarto.yaml index 74d13ee..6c9603e 100644 --- a/.github/workflows/bookdown.yaml +++ b/.github/workflows/quarto.yaml @@ -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 }} @@ -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'