aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOgulcan Celik <ogulcancelik@gmail.com>2026-08-31 17:06:01 +0300
committerOgulcan Celik <ogulcancelik@gmail.com>2026-09-01 13:22:45 +0300
commitb54a78aa510b87d1e3b56c619b72eaeb59e4a2a1 (patch)
tree5a9be956d96bc5074b3eef0649d09eae947950cc
parent5158adab10b6dcfea9370782043392f80fa0643c (diff)
ci: trigger private website deploys
-rw-r--r--.github/workflows/website-deploy.yml41
1 files changed, 41 insertions, 0 deletions
diff --git a/.github/workflows/website-deploy.yml b/.github/workflows/website-deploy.yml
new file mode 100644
index 00000000..7220af72
--- /dev/null
+++ b/.github/workflows/website-deploy.yml
@@ -0,0 +1,41 @@
+name: Trigger Website Deploy
+
+on:
+ workflow_dispatch:
+ push:
+ branches: [master]
+ paths:
+ - ".github/workflows/website-deploy.yml"
+ - "docs/preview/**"
+ - "docs/versions/**"
+ - "src/detect/manifests/**"
+ - "website/agent-detection/**"
+ - "website/agent-guide.md"
+ - "website/install.cmd"
+ - "website/install.ps1"
+ - "website/install.sh"
+ - "website/latest.json"
+ - "website/preview.json"
+
+permissions:
+ contents: read
+
+concurrency:
+ group: private-website-deploy
+ cancel-in-progress: true
+
+jobs:
+ trigger:
+ runs-on: ubuntu-latest
+ timeout-minutes: 5
+ steps:
+ - name: Trigger Cloudflare Pages build
+ env:
+ DEPLOY_HOOK: ${{ secrets.HERDR_WEBSITE_DEPLOY_HOOK }}
+ run: |
+ if [ -z "$DEPLOY_HOOK" ]; then
+ echo "::error::HERDR_WEBSITE_DEPLOY_HOOK is not configured"
+ exit 1
+ fi
+ curl -fsS -X POST "$DEPLOY_HOOK" > /dev/null
+ echo "Triggered private website deploy"