From 70f55b0dfc742e830b54670d944ef55ddc68a44f Mon Sep 17 00:00:00 2001 From: Jonathan Yong Date: Tue, 3 Oct 2023 18:07:23 +0100 Subject: [PATCH] Simplify GHA workflow --- .github/workflows/publish.yml | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 458d0e05..f1384ee7 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -15,20 +15,14 @@ jobs: - name: Set up Quarto uses: quarto-dev/quarto-actions/setup@v2 - - name: Install R - uses: r-lib/actions/setup-r@v2 + - name: Render Quarto project + uses: quarto-dev/quarto-actions/render@v2 with: - r-version: '4.2.0' + to: html - - name: Install R packages - uses: r-lib/actions/setup-r-dependencies@v2 + - name: Upload files to gh-pages branch + uses: peaceiris/actions-gh-pages@v3 with: - packages: - any::rmarkdown - - - name: Publish to GitHub Pages - uses: quarto-dev/quarto-actions/publish@v2 - with: - target: gh-pages - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./docs + publish_branch: gh-pages