From 2dfd8a7b9b89757fbbd92944765b786f4633f023 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian=20T=C3=B6lle?= Date: Sun, 19 Feb 2023 01:20:25 +0100 Subject: [PATCH] ci: redeploy daily --- .github/workflows/redeploy.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/redeploy.yaml diff --git a/.github/workflows/redeploy.yaml b/.github/workflows/redeploy.yaml new file mode 100644 index 0000000..faa8882 --- /dev/null +++ b/.github/workflows/redeploy.yaml @@ -0,0 +1,18 @@ +name: redeploy + +on: + # We want to re-deploy daily to update any dynamic content on the page (e.g. favorite music, age) + schedule: + - cron: "42 0 * * *" + + # Manual + workflow_dispatch: + +jobs: + redeploy: + runs-on: ubuntu-22.04 + steps: + - env: + DEPLOY_HOOK: ${{ secrets.DEPLOY_HOOK }} + run: | + curl -X POST "${DEPLOY_HOOK}"