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]