Skip to content

fix: add address validation #23

fix: add address validation

fix: add address validation #23

Workflow file for this run

name: "Deploy preview"
"on":
pull_request:
workflow_dispatch:
inputs:
network:
type: string
default: "goerli"
required: false
description: "target/env: mainnet, goerli"
jobs:
build_and_preview:
if: ${{ github.event.pull_request.head.repo.full_name == github.repository }} or ${{ github.event.repository.full_name == github.repository }}
runs-on: ubuntu-latest
outputs:
results: "${{ steps.deploy_preview.outputs.urls }}"
steps:
- uses: actions/checkout@v2
- name: "Enable yarn cache"
uses: c-hive/gha-yarn-cache@v2 # using cache
- name: "Setup node@14"
uses: actions/setup-node@v2
with:
node-version: 14
- name: "Install dependencies"
run: |
yarn set version 3.1.1
yarn install
npm install -g firebase-tools
- name: "Build dist of ${{ github.event.inputs.network || 'goerli' }}"
run: "yarn run ci:build:${{ github.event.inputs.network || 'goerli' }}"
- name: "Setup node@18"
uses: actions/setup-node@v2
with:
node-version: 18
- name: "Deploy"
uses: matter-labs/action-hosting-deploy@main
id: deploy_preview
with:
repoToken: "${{ secrets.GITHUB_TOKEN }}"
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_FORCED_EXIT_STAGING }}"
target: ${{ github.event.inputs.network || 'goerli' }}
projectId: forced-exit-staging
channelId: "${{ github.ref }}"