Skip to content

Commit

Permalink
Added one more workflow for the development
Browse files Browse the repository at this point in the history
  • Loading branch information
GauravWalia19 committed Mar 26, 2023
1 parent 75c3589 commit 71857be
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 2 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/Vercel Deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,9 @@ on:
pull_request:
branches:
- master
- dev
push:
branches:
- master
- dev
jobs:
test:
runs-on: ubuntu-latest
Expand Down
34 changes: 34 additions & 0 deletions .github/workflows/Vercel Dev Deployment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Vercel Dev Deployment
on:
pull_request:
branches:
- dev
push:
branches:
- dev
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '18.x'
- run: yarn install
- run: yarn run test
env:
MONGODB_URI: ${{ secrets.MONGODB_URI }}
RATE_LIMIT_MINUTES: ${{ secrets.RATE_LIMIT_MINUTES }}
RATE_LIMIT_MAX_REQUEST: ${{ secrets.RATE_LIMIT_MAX_REQUEST }}
CACHE_STORAGE_SECONDS: ${{ secrets.CACHE_STORAGE_SECONDS }}
deploy:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: amondnet/vercel-action@v20
with:
vercel-token: ${{ secrets.VERCEL_TOKEN }} # Required
vercel-org-id: ${{ secrets.ORG_ID}} #Required
vercel-project-id: ${{ secrets.PROJECT_ID}} #Required
working-directory: .

0 comments on commit 71857be

Please sign in to comment.