Cloudflare Pages deploy hook #347
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: 'Cloudflare Pages deploy hook' | |
| on: | |
| schedule: | |
| # https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule | |
| # https://crontab.guru/ | |
| - cron: '57 23 * * *' # UTC time | |
| workflow_dispatch: | |
| # https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#workflow_dispatch | |
| # You can trigger this workflow manually using the GitHub CLI: | |
| # gh workflow run "Cloudflare Pages deploy hook" --ref branch-name | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: 🛎️ Checkout repo | |
| uses: actions/checkout@v4 | |
| - name: 🌐 Trigger build on Cloudflare Pages | |
| # https://github.com/marketplace/actions/http-request-action | |
| uses: fjogeleit/http-request-action@v1 | |
| with: | |
| url: ${{ secrets.CLOUDFLARE_PAGES_DEPLOY_HOOK }} | |
| method: 'POST' |