Skip to content
Merged
Show file tree
Hide file tree
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
12 changes: 12 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,15 @@ jobs:
git tag "$VERSION"
git push origin "$VERSION"
gh release create "$VERSION" --generate-notes

- name: Trigger Vercel deploy at tagged commit
if: steps.next.outputs.version != 'skip'
env:
HOOK: ${{ secrets.VERCEL_DEPLOY_HOOK }}
run: |
if [ -z "$HOOK" ]; then
echo "VERCEL_DEPLOY_HOOK secret not set; skipping deploy trigger" >&2
exit 0
fi
curl -fsS -X POST "$HOOK" >/dev/null
echo "Vercel deploy hook triggered for ${{ steps.next.outputs.version }}"
1 change: 1 addition & 0 deletions vercel.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"buildCommand": "git fetch --tags --depth=1 origin || true; python3 build.py --check",
"ignoreCommand": "if [ \"$VERCEL_GIT_COMMIT_REF\" = \"main\" ]; then git fetch --tags --depth=1 origin >/dev/null 2>&1 || true; ! git describe --exact-match --tags HEAD >/dev/null 2>&1; else exit 1; fi",
"outputDirectory": "public",
"framework": null,
"headers": [
Expand Down
Loading