add needed env files #1724
Workflow file for this run
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: Bridge UI CI/CD | |
on: | |
push: | |
branches-ignore: | |
- release-please-* | |
paths: | |
- "packages/bridge-ui/**" | |
pull_request: | |
paths: | |
- "packages/bridge-ui/**" | |
jobs: | |
build-and-test: | |
runs-on: [taiko-runner] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Build and Checks | |
uses: ./.github/workflows/bridge-ui-ci.yml | |
# Deployment name follow the pattern: deploy_<appname(bridge-ui)>_<network(devnet|hekla|mainnet)>_<environment(preview|production)> | |
deploy_bridge-ui_hekla_preview: | |
if: ${{ github.ref_name != 'main' }} | |
runs-on: [taiko-runner] | |
needs: build-and-test | |
env: | |
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID_BRIDGE_UI_HEKLA }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Deploy | |
uses: ./.github/workflows/vercel-deploy.yml | |
with: | |
environment: 'preview' | |
flags: '' | |
vercel_project_id: ${{ env.VERCEL_PROJECT_ID }} | |
deploy_bridge-ui_devnet_preview: | |
if: ${{ github.ref_name != 'main' }} | |
runs-on: [taiko-runner] | |
needs: build-and-test | |
env: | |
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID_BRIDGE_UI_INTERNAL }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Deploy | |
uses: ./.github/workflows/vercel-deploy.yml | |
with: | |
environment: 'preview' | |
flags: '' | |
vercel_project_id: ${{ env.VERCEL_PROJECT_ID }} | |
deploy_bridge-ui_hekla_production: | |
if: ${{ github.ref_name == 'main' && contains(github.ref, 'refs/tags/bridge-ui-') }} | |
runs-on: [taiko-runner] | |
needs: build-and-test | |
env: | |
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID_BRIDGE_UI_HEKLA }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Deploy | |
uses: ./.github/workflows/vercel-deploy.yml | |
with: | |
environment: 'production' | |
flags: '--prod' | |
vercel_project_id: ${{ env.VERCEL_PROJECT_ID }} |