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'