From 3a94870531588971d9cf1248b74471c3d2c744b0 Mon Sep 17 00:00:00 2001 From: John Bowdre <61015723+jbowdre@users.noreply.github.com> Date: Tue, 12 Sep 2023 16:18:37 -0500 Subject: [PATCH] schedule daily netlify builds this will make it possible to schedule posts for future publish dates --- .github/workflows/daily_build.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .github/workflows/daily_build.yml diff --git a/.github/workflows/daily_build.yml b/.github/workflows/daily_build.yml new file mode 100644 index 0000000..f8d70f7 --- /dev/null +++ b/.github/workflows/daily_build.yml @@ -0,0 +1,14 @@ +name: Daily build + +on: + schedule: + - cron: "0 13 * * *" + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Trigger build webhook on Netlify + run: curl -s -X POST "https://api.netlify.com/build_hooks/${TOKEN}" + env: + TOKEN: ${{ secrets.NETLIFY_CRON_BUILD_HOOK }}