Merge pull request #277 from us3r-network/F-upgradeScanDeps-bufan #52
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
# 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 }}' | |
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: 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 }}' | |
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: scan-dev | |
entryPoint: './packages/client/scan/' |