Skip to content

Merge pull request #299 from us3r-network/F-quickStartGuide-bufan #94

Merge pull request #299 from us3r-network/F-quickStartGuide-bufan

Merge pull request #299 from us3r-network/F-quickStartGuide-bufan #94

# This file was auto-generated by the Firebase CLI
# https://github.com/firebase/firebase-tools
name: Deploy Dashboard to Firebase Hosting on merge
"on":
push:
branches:
- dashboard
- dashboard-dev
jobs:
prod_build_and_deploy:
if: github.ref == 'refs/heads/dashboard'
runs-on: ubuntu-latest
environment:
name: production
url: https://dashboard.s3.xyz
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "20"
- run: |
cd packages/client/dashboard
yarn
yarn build
env:
CI: false
GENERATE_SOURCEMAP: false
REACT_APP_NAME: 'US3R CONSOLE'
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 }}'
REACT_APP_S3_SCAN_URL: '${{ vars.REACT_APP_S3_SCAN_URL }}'
REACT_APP_DOCS_URL: '${{ vars.REACT_APP_DOCS_URL }}'
REACT_APP_ADMIN_ADDRESS: '${{ vars.REACT_APP_ADMIN_ADDRESS }}'
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: "${{ secrets.GITHUB_TOKEN }}"
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_US3R_NETWORK }}"
channelId: live
projectId: us3r-network
target: dashboard
entryPoint: "./packages/client/dashboard/"
dev_build_and_deploy:
if: github.ref == 'refs/heads/dashboard-dev'
runs-on: ubuntu-latest
environment:
name: development
url: https://dashboard-dev.s3.xyz
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "20"
- run: |
cd packages/client/dashboard
yarn
yarn build
env:
CI: false
NODE_OPTIONS: '--max-old-space-size=8192'
REACT_APP_NAME: 'US3R CONSOLE 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 }}'
REACT_APP_S3_SCAN_URL: '${{ vars.REACT_APP_S3_SCAN_URL }}'
REACT_APP_DOCS_URL: '${{ vars.REACT_APP_DOCS_URL }}'
REACT_APP_ADMIN_ADDRESS: '${{ vars.REACT_APP_ADMIN_ADDRESS }}'
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: "${{ secrets.GITHUB_TOKEN }}"
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_US3R_NETWORK }}"
channelId: live
projectId: us3r-network
target: dashboard-dev
entryPoint: "./packages/client/dashboard/"