From acc118f304db0ebfce6b6607eb88cec20a23824b Mon Sep 17 00:00:00 2001 From: Johannes Grof <147989511+jx-grxf@users.noreply.github.com> Date: Wed, 6 May 2026 11:10:02 +0200 Subject: [PATCH] ci(config): refresh website on release --- .github/workflows/refresh-website.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/refresh-website.yml diff --git a/.github/workflows/refresh-website.yml b/.github/workflows/refresh-website.yml new file mode 100644 index 0000000..1f3c1da --- /dev/null +++ b/.github/workflows/refresh-website.yml @@ -0,0 +1,22 @@ +name: Refresh website on release + +on: + release: + types: [published, edited, deleted] + workflow_dispatch: + +jobs: + refresh-website: + name: Trigger johannesgrof.me rebuild + runs-on: ubuntu-latest + steps: + - name: Trigger Vercel deploy hook + env: + WEBSITE_DEPLOY_HOOK_URL: ${{ secrets.WEBSITE_DEPLOY_HOOK_URL }} + run: | + if [ -z "$WEBSITE_DEPLOY_HOOK_URL" ]; then + echo "WEBSITE_DEPLOY_HOOK_URL secret is missing." + exit 1 + fi + + curl --fail --silent --show-error --request POST "$WEBSITE_DEPLOY_HOOK_URL"