Skip to content

Commit 2b1bfd6

Browse files
authored
Create deploy.yml
1 parent 1691973 commit 2b1bfd6

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Deploy Workflow
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- name: Set up Node.js
14+
uses: actions/setup-node@v2
15+
with:
16+
node-version: '16'
17+
- run: npm install
18+
- run: npm run build
19+
- name: Deploy to Vercel
20+
run: vercel --prod
21+
env:
22+
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}

0 commit comments

Comments
 (0)