Skip to content

Commit

Permalink
Merge pull request #28 from deriv-com/Rupato/FEQ-2488/update-vercel-f…
Browse files Browse the repository at this point in the history
…or-disaster-recovery

Rupato/FEQ-2488/Implement-vercel-for-disater-recovery
  • Loading branch information
ali-hosseini-deriv authored Jul 23, 2024
2 parents 7c75d5b + cac69fa commit 0b20250
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-dbot-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 0b20250

Please sign in to comment.