From f4ad903ec76e274114f04caa50d00a77e79b05e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zo=C3=AB=20Turner?= Date: Wed, 29 Nov 2023 17:50:40 +0000 Subject: [PATCH] =?UTF-8?q?Revert=20"Replaced=20with=20nix=20code=20from?= =?UTF-8?q?=20https://www.brodrigues.co/blog/2023-10-20=E2=80=A6"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/quarto-publish.yml | 60 +++++++++++++++------------- 1 file changed, 33 insertions(+), 27 deletions(-) diff --git a/.github/workflows/quarto-publish.yml b/.github/workflows/quarto-publish.yml index a940db5..d4277ac 100644 --- a/.github/workflows/quarto-publish.yml +++ b/.github/workflows/quarto-publish.yml @@ -1,33 +1,39 @@ -name: Build book using Nix - on: + workflow_dispatch: push: - branches: - - main + branches: main + +name: Quarto Publish + +# you need these permissions to publish to GitHub pages +permissions: + contents: write + pages: write jobs: - build: + build-deploy: runs-on: ubuntu-latest - + permissions: + contents: write steps: - - name: Checkout Code - uses: actions/checkout@v3 - - - name: Install Nix - uses: DeterminateSystems/nix-installer-action@main - with: - logger: pretty - log-directives: nix_installer=trace - backtrace: full - - - name: Nix cache - uses: DeterminateSystems/magic-nix-cache-action@main - - - name: Build development environment - run: | - nix-build - - - name: Publish to GitHub Pages (and render) - uses: b-rodrigues/quarto-nix-actions/publish@main - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Check out repository + uses: actions/checkout@v3 + + - uses: r-lib/actions/setup-r@v2 + with: + use-public-rspm: true + + - uses: r-lib/actions/setup-renv@v2 + + - name: Set up Quarto + uses: quarto-dev/quarto-actions/setup@v2 + + - name: Render Quarto Project + uses: quarto-dev/quarto-actions/render@v2 + + - name: Render and Publish + uses: quarto-dev/quarto-actions/publish@v2 + with: + target: gh-pages + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}