diff --git a/.github/workflows/build-and-deploy-staging.yml b/.github/workflows/build-and-deploy-staging.yml index 55616515..449e25cd 100644 --- a/.github/workflows/build-and-deploy-staging.yml +++ b/.github/workflows/build-and-deploy-staging.yml @@ -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' diff --git a/.gitignore b/.gitignore index 40505094..80ed26ee 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ *~ +.vercel .idea/ .grunt/ .sass-cache/ diff --git a/vercel.dr.json b/vercel.dr.json new file mode 100644 index 00000000..ac6da57f --- /dev/null +++ b/vercel.dr.json @@ -0,0 +1,5 @@ +{ + "cleanUrls": true, + "outputDirectory": "dist", + "buildCommand": "echo ✅ Skipping build to use existing built files" +}