adding action for deployment

added action for deployment on vercel and will fix traceability issue
This commit is contained in:
joeaba 2021-10-20 12:22:43 +05:30 committed by GitHub
parent 66e431dad5
commit 8305923527
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 6 deletions

View File

@ -33,10 +33,13 @@ jobs:
- run: npm run format
- run: npm run build
- run: npm run test
- name: checking out
uses: actions/checkout@v2
- name: Deploying
run: source publish.sh
env:
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
- uses: actions/checkout@v2
- uses: amondnet/vercel-action@v20
with:
vercel-token: ${{ secrets.VERCEL_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}
vercel-args: '--prod' #for production
vercel-org-id: ${{ secrets.ORG_ID}}
vercel-project-id: ${{ secrets.PROJECT_ID}}
working-directory: ./explorer