diff options
Diffstat (limited to '.github/workflows/website-deploy.yml')
| -rw-r--r-- | .github/workflows/website-deploy.yml | 41 |
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" |
