From 0641db606cc4c722fbc2f2169c6534de9942122e Mon Sep 17 00:00:00 2001 From: iramosgutierrez Date: Thu, 30 Jan 2025 16:43:06 +0100 Subject: [PATCH] publishing action every midnight --- .github/workflows/publish.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 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..77aff8d --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,28 @@ +on: + workflow_dispatch: + schedule: + - cron: "0 0 * * *" + push: + branches: main + +name: Quarto Publish + +jobs: + build-deploy: + timeout-minutes: 10 + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - name: Check out repository + uses: actions/checkout@v4 + + - 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 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}