mirror of
https://github.com/storytold/craft-wiki.git
synced 2026-11-19 05:51:01 +01:00
24 lines
518 B
YAML
24 lines
518 B
YAML
name: Trigger Cloudflare deploy
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
workflow_dispatch:
|
|
|
|
permissions: {}
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 5
|
|
steps:
|
|
- name: Trigger Cloudflare build
|
|
env:
|
|
DEPLOY_HOOK: ${{ vars.CLOUDFLARE_DEPLOY_HOOK }}
|
|
run: |
|
|
if [ -z "$DEPLOY_HOOK" ]; then
|
|
echo "CLOUDFLARE_DEPLOY_HOOK is not configured" >&2
|
|
exit 1
|
|
fi
|
|
curl --fail --silent --show-error --request POST "$DEPLOY_HOOK"
|