From 86ae20ea726a452aeaa4aaabe83673a3d3147a38 Mon Sep 17 00:00:00 2001 From: Stefan Fuertinger Date: Tue, 1 Aug 2023 14:50:40 +0200 Subject: [PATCH] NEW: Added GH action for publishing slidedeck - use GH action to automatically publish slidedeck upon push to main branch On branch main Changes to be committed: new file: .github/workflows/publish.yml --- .github/workflows/publish.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..0bbbd98 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,26 @@ +on: + workflow_dispatch: + push: + branches: main + + name: Quarto Publish + + jobs: + build-deploy: + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - name: Check out repository + uses: actions/checkout@v3 + + - name: Set up Quarto + uses: quarto-dev/quarto-actions/setup@v2 + + - name: Render and Publish + uses: quarto-dev/quarto-actions/publish@v2 + with: + target: gh-pages + path: acme-demo.qmd + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}