From b54a78aa510b87d1e3b56c619b72eaeb59e4a2a1 Mon Sep 17 00:00:00 2001 From: Ogulcan Celik Date: Mon, 31 Aug 2026 17:06:01 +0300 Subject: ci: trigger private website deploys --- .github/workflows/website-deploy.yml | 41 ++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/website-deploy.yml (limited to '.github') 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" -- cgit v1.2.3