Skip to content

Merge pull request #200 from us3r-network/scan-dev #32

Merge pull request #200 from us3r-network/scan-dev

Merge pull request #200 from us3r-network/scan-dev #32

# This file was auto-generated by the Firebase CLI
# https://github.com/firebase/firebase-tools
name: Deploy Scan to Firebase Hosting on merge
'on':
push:
branches:
- scan
- scan-dev
jobs:
prod_build_and_deploy:
if: github.ref == 'refs/heads/scan'
runs-on: ubuntu-latest
environment:
name: production
url: https://scan.s3.xyz
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18'
- run: |
cd packages/client/scan
yarn
yarn build
env:
CI: false
REACT_APP_NAME: 'US3R SCAN'
REACT_APP_API_BASE_URL: '${{ vars.REACT_APP_API_BASE_URL }}'
REACT_APP_UPLOAD_API_URL: '${{ vars.REACT_APP_UPLOAD_API_URL }}'
REACT_APP_CERAMIC_MAINNET_HOST: '${{ vars.REACT_APP_CERAMIC_MAINNET_HOST }}'
REACT_APP_CERAMIC_TESTNET_HOST: '${{ vars.REACT_APP_CERAMIC_TESTNET_HOST }}'
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_US3R_NETWORK }}'
channelId: live
projectId: us3r-network
target: scan
entryPoint: './packages/client/scan/'
dev_build_and_deploy:
if: github.ref == 'refs/heads/scan-dev'
runs-on: ubuntu-latest
environment:
name: development
url: https://scan-dev.s3.xyz
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18'
- run: |
cd packages/client/scan
yarn
yarn build
env:
CI: false
REACT_APP_NAME: 'US3R SCAN DEV'
REACT_APP_API_BASE_URL: '${{ vars.REACT_APP_API_BASE_URL }}'
REACT_APP_UPLOAD_API_URL: '${{ vars.REACT_APP_UPLOAD_API_URL }}'
REACT_APP_CERAMIC_MAINNET_HOST: '${{ vars.REACT_APP_CERAMIC_MAINNET_HOST }}'
REACT_APP_CERAMIC_TESTNET_HOST: '${{ vars.REACT_APP_CERAMIC_TESTNET_HOST }}'
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_US3R_NETWORK }}'
channelId: live
projectId: us3r-network
target: scan-dev
entryPoint: './packages/client/scan/'