Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .github/workflows/refresh-website.yml
Original file line number Diff line number Diff line change
@@ -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"
Loading