schedule daily netlify builds

this will make it possible to schedule posts for future publish dates
This commit is contained in:
John Bowdre 2023-09-12 16:18:37 -05:00 committed by GitHub
parent 1cce816fd8
commit e8ee2fc1f9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

14
.github/workflows/daily_build.yml vendored Normal file
View file

@ -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 }}