Skip to content

Commit

Permalink
fix: added vercel for disaster recovery
Browse files Browse the repository at this point in the history
  • Loading branch information
rupato-deriv committed Jul 22, 2024
1 parent 08d2523 commit 481601a
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/build-and-deploy-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,13 @@ jobs:
echo "Deployment to Cloudflare Pages failed."
exit 1
fi
- name: Upload to vercel
uses: 'deriv-com/shared-actions/.github/actions/vercel_DR_publish@master'
with:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
VERCEL_TOKEN: ${{ secrets.VERCEL_API_TOKEN }}
ENVIRONMENT: Preview
VERCEL_SCOPE: deriv
ALIAS_DOMAIN_URL: 'staging-bot-dr.binary.sx'
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
*~
.vercel
.idea/
.grunt/
.sass-cache/
Expand Down
5 changes: 5 additions & 0 deletions vercel.dr.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"cleanUrls": true,
"outputDirectory": "dist",
"buildCommand": "echo ✅ Skipping build to use existing built files"
}

0 comments on commit 481601a

Please sign in to comment.