Skip to content

Commit b18b7d3

Browse files
authored
Create deploy.yml
1 parent 4b7fc6c commit b18b7d3

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Deploy to Vercel on Release
2+
3+
on:
4+
release:
5+
types: [created] # Triggers the workflow when a release is created
6+
7+
jobs:
8+
deploy:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout Code
13+
uses: actions/checkout@v4
14+
15+
- name: Install Vercel CLI
16+
run: npm install -g vercel
17+
18+
- name: Deploy to Vercel
19+
env:
20+
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }} # Vercel token for authentication
21+
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} # Your Vercel project ID
22+
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} # Your Vercel organization ID (if applicable)
23+
run: vercel --prod --confirm
24+

0 commit comments

Comments
 (0)