ci: fix build ui workflow #2
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: Deploy UI Workflow | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
name: Deploy Job | |
concurrency: ci-${{ github.ref }} | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ui | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install and Build | |
run: | | |
npm ci | |
npm run build | |
env: | |
REACT_APP_CAMPAIGN_FACTORY_ADDRESS: ${{ secrets.CAMPAIGN_FACTORY_ADDRESS }} | |
REACT_APP_WEB3_PROVIDER: ${{ secrets.WEB3_PROVIDER_URL }} | |
- name: Deploy | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
folder: ./ui/build |