Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 1 addition & 20 deletions .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
name: Deployment

on:
# build when pushing to main/develop, or create a release
push:
branches: [ main, develop ]
tags: [ cowswap-v*, explorer-v* ]
workflow_dispatch: # Manually trigger it via UI/CLI/API
inputs:
app:
Expand All @@ -18,21 +14,6 @@ on:

jobs:

vercel-pre-prod:
# Deploys to Vercel staging environment only when there is a tag for CowSwap or Explorer
name: Vercel pre-prod
if: startsWith(github.ref, 'refs/tags')
uses: ./.github/workflows/vercel.yml
secrets: inherit
strategy:
matrix:
env_name: [ staging ] # deploys both in parallel
with:
env_name: ${{ matrix.env_name }}
# Pick app according to published tag
app: ${{ startsWith(github.ref, 'refs/tags/explorer') && 'EXPLORER' || 'COWSWAP' }}
disable_nx_cache: true

vercel-prod:
# Deploys to Vercel prod environment
name: Vercel prod
Expand All @@ -49,7 +30,7 @@ jobs:

notify-failure:
name: Notify Slack on Failure
needs: [ vercel-pre-prod, vercel-prod ]
needs: [ vercel-prod ]
runs-on: ubuntu-latest
if: failure() && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/develop')
Comment thread
coderabbitai[bot] marked this conversation as resolved.

Expand Down
Loading