From c587bfe9d361956d8d0654745bf6b2bfd0285eb4 Mon Sep 17 00:00:00 2001 From: Rupato Date: Tue, 23 Jul 2024 17:57:52 +0800 Subject: [PATCH] fix: vercel deployment --- .github/workflows/release_production.yml | 38 +++++++++++------------- 1 file changed, 17 insertions(+), 21 deletions(-) diff --git a/.github/workflows/release_production.yml b/.github/workflows/release_production.yml index 0894ebb02..e7c530a74 100644 --- a/.github/workflows/release_production.yml +++ b/.github/workflows/release_production.yml @@ -44,27 +44,23 @@ jobs: with: CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} - publish_to_vercel: - runs-on: ubuntu-latest - environment: Production - needs: [release_production] - steps: - - name: Upload to vercel - uses: 'deriv-com/shared-actions/.github/actions/vercel_DR_publish@master' - id: dr_action - with: - VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} - VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} - VERCEL_TOKEN: ${{ secrets.VERCEL_API_TOKEN }} - ENVIRONMENT: Production - VERCEL_SCOPE: deriv - ALIAS_DOMAIN_URL: 'bot-dr.binary.sx' - - name: Send Slack Notification on Vercel Publish failure - uses: "deriv-com/shared-actions/.github/actions/send_slack_notification@master" - if: steps.dr_action.conclusion == 'failure' - with: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} - MESSAGE: "Vercel Publish failed for bot.deriv.com with version ${{ needs.release_production.outputs.RELEASE_VERSION }}" + + - name: Upload to vercel + uses: 'deriv-com/shared-actions/.github/actions/vercel_DR_publish@master' + id: dr_action + with: + VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} + VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} + VERCEL_TOKEN: ${{ secrets.VERCEL_API_TOKEN }} + ENVIRONMENT: Production + VERCEL_SCOPE: deriv + ALIAS_DOMAIN_URL: 'bot-dr.binary.sx' + - name: Send Slack Notification on Vercel Publish failure + uses: "deriv-com/shared-actions/.github/actions/send_slack_notification@master" + if: steps.dr_action.conclusion == 'failure' + with: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} + MESSAGE: "Vercel Publish failed for bot.deriv.com with version ${{ needs.release_production.outputs.RELEASE_VERSION }}" send_slack_notification: if: always() needs: [release_production]