Skip to content

F-quickStartGuide-bufan #101

F-quickStartGuide-bufan

F-quickStartGuide-bufan #101

# This file was auto-generated by the Firebase CLI
# https://github.com/firebase/firebase-tools
name: Deploy Dashboard to Firebase Hosting on PR
"on":
pull_request:
branches:
- dashboard
- dashboard-dev
jobs:
prod_build_and_deploy:
if: github.ref == 'refs/heads/dashboard' && github.event.pull_request.head.repo.full_name == github.repository
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 }}"
projectId: us3r-network
target: dashboard
entryPoint: "./packages/client/dashboard/"
dev_build_and_deploy:
if: github.ref == 'refs/heads/dashboard-dev' && github.event.pull_request.head.repo.full_name == github.repository
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 }}"
projectId: us3r-network
target: dashboard-dev
entryPoint: "./packages/client/dashboard/"