release: prepare v0.3.1 #9
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Trigger Vercel Deploy Hook | |
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Call Vercel Deploy Hook | |
| if: ${{ env.VERCEL_DEPLOY_HOOK != '' }} | |
| env: | |
| VERCEL_DEPLOY_HOOK: ${{ secrets.VERCEL_DEPLOY_HOOK }} | |
| run: | | |
| curl -X POST "$VERCEL_DEPLOY_HOOK" | |
| echo "Vercel deploy hook triggered." | |
| - name: Skip if Hook URL is missing | |
| if: ${{ env.VERCEL_DEPLOY_HOOK == '' }} | |
| env: | |
| VERCEL_DEPLOY_HOOK: ${{ secrets.VERCEL_DEPLOY_HOOK }} | |
| run: | | |
| echo "VERCEL_DEPLOY_HOOK secret is not set. Skipping Vercel deployment." |