From a895bea7f49f6138f3a0e905e70abab246fc0125 Mon Sep 17 00:00:00 2001 From: Sayan- <1415138+Sayan-@users.noreply.github.com> Date: Fri, 26 Jun 2026 22:57:12 +0000 Subject: [PATCH] ci: redeploy website on changelog updates --- .github/workflows/deploy-website.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/deploy-website.yml diff --git a/.github/workflows/deploy-website.yml b/.github/workflows/deploy-website.yml new file mode 100644 index 0000000..d838386 --- /dev/null +++ b/.github/workflows/deploy-website.yml @@ -0,0 +1,21 @@ +name: Redeploy Website + +on: + push: + branches: [main] + paths: + - changelog.mdx + +jobs: + deploy-hook: + runs-on: ubuntu-latest + steps: + - name: Trigger Vercel deploy hook + env: + DEPLOY_HOOK_URL: ${{ secrets.WEBSITE_VERCEL_DEPLOY_HOOK }} + run: | + if [ -z "$DEPLOY_HOOK_URL" ]; then + echo "WEBSITE_VERCEL_DEPLOY_HOOK secret is not set; skipping." + exit 1 + fi + curl -fsS -X POST "$DEPLOY_HOOK_URL"