Skip to content

Commit 71857be

Browse files
committed
Added one more workflow for the development
1 parent 75c3589 commit 71857be

File tree

2 files changed

+34
-2
lines changed

2 files changed

+34
-2
lines changed

.github/workflows/Vercel Deployment.yml

-2
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,9 @@ on:
33
pull_request:
44
branches:
55
- master
6-
- dev
76
push:
87
branches:
98
- master
10-
- dev
119
jobs:
1210
test:
1311
runs-on: ubuntu-latest
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Vercel Dev Deployment
2+
on:
3+
pull_request:
4+
branches:
5+
- dev
6+
push:
7+
branches:
8+
- dev
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
- uses: actions/setup-node@v2
15+
with:
16+
node-version: '18.x'
17+
- run: yarn install
18+
- run: yarn run test
19+
env:
20+
MONGODB_URI: ${{ secrets.MONGODB_URI }}
21+
RATE_LIMIT_MINUTES: ${{ secrets.RATE_LIMIT_MINUTES }}
22+
RATE_LIMIT_MAX_REQUEST: ${{ secrets.RATE_LIMIT_MAX_REQUEST }}
23+
CACHE_STORAGE_SECONDS: ${{ secrets.CACHE_STORAGE_SECONDS }}
24+
deploy:
25+
needs: test
26+
runs-on: ubuntu-latest
27+
steps:
28+
- uses: actions/checkout@v2
29+
- uses: amondnet/vercel-action@v20
30+
with:
31+
vercel-token: ${{ secrets.VERCEL_TOKEN }} # Required
32+
vercel-org-id: ${{ secrets.ORG_ID}} #Required
33+
vercel-project-id: ${{ secrets.PROJECT_ID}} #Required
34+
working-directory: .

0 commit comments

Comments
 (0)