From 0003b990ab302de666732de5b350a756b2742b6c Mon Sep 17 00:00:00 2001 From: "Patrick J. Roddy" Date: Tue, 25 Jun 2024 11:28:33 +0100 Subject: [PATCH] `quarto render` for non-`main` branches (#236) --- actions/github-pages/quarto/action.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/actions/github-pages/quarto/action.yml b/actions/github-pages/quarto/action.yml index 7795e2f..6f7f1b1 100644 --- a/actions/github-pages/quarto/action.yml +++ b/actions/github-pages/quarto/action.yml @@ -17,7 +17,13 @@ runs: # yamllint disable-line rule:line-length uses: quarto-dev/quarto-actions/setup@c1b50d36cf3c22b3dc7e530bd1b36634e824e545 # v2 - - name: Render and Publish + - name: Render ${{ github.ref_name }} branch + if: github.ref != 'refs/heads/main' + # yamllint disable-line rule:line-length + uses: quarto-dev/quarto-actions/render@c1b50d36cf3c22b3dc7e530bd1b36634e824e545 # v2 + + - name: Publish main branch + if: github.ref == 'refs/heads/main' # yamllint disable-line rule:line-length uses: quarto-dev/quarto-actions/publish@c1b50d36cf3c22b3dc7e530bd1b36634e824e545 # v2 with: