fix: display cow token logo in header (#3608) #428
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deployment | |
on: | |
# build when pushing to main/develop, or create a release | |
push: | |
branches: [main, develop] | |
tags: [v*] | |
workflow_dispatch: # Manually trigger it via UI/CLI/API | |
inputs: | |
app: | |
description: App to deploy | |
required: true | |
type: choice | |
options: | |
- COWSWAP | |
- EXPLORER | |
- ALL | |
jobs: | |
vercel-dev: | |
# Deploys to Vercel dev environment | |
name: Vercel dev | |
if: github.ref == 'refs/heads/develop' | |
uses: ./.github/workflows/vercel.yml | |
secrets: inherit | |
with: | |
env_name: dev | |
app: ALL | |
vercel-pre-prod: | |
# Deploys to Vercel staging and barn environments | |
name: Vercel pre-prod | |
if: startsWith(github.ref, 'refs/tags/v') | |
uses: ./.github/workflows/vercel.yml | |
secrets: inherit | |
strategy: | |
matrix: | |
env_name: [barn, staging] # deploys both in parallel | |
with: | |
env_name: ${{ matrix.env_name }} | |
app: ALL | |
vercel-prod: | |
# Deploys to Vercel prod environment | |
name: Vercel prod | |
if: github.event_name == 'workflow_dispatch' | |
uses: ./.github/workflows/vercel.yml | |
secrets: inherit | |
with: | |
env_name: prod | |
app: ${{ inputs.app }} |