Merge pull request #161 from us3r-network/F-profileIntegratedWeb3bio-… #138
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 u3 to Firebase Hosting on merge | |
"on": | |
push: | |
branches: | |
- u3 | |
- u3-dev | |
jobs: | |
prod_build_and_deploy: | |
if: github.ref == 'refs/heads/u3' | |
runs-on: ubuntu-latest | |
environment: | |
name: production | |
url: https://u3.xyz | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: "20" | |
- run: | | |
cd apps/u3 | |
yarn | |
yarn build | |
env: | |
CI: false | |
REACT_APP_NAME: "U3" | |
NODE_OPTIONS: "--max_old_space_size=4096" | |
REACT_APP_API_BASE_URL: "${{ vars.REACT_APP_API_BASE_URL }}" | |
REACT_APP_S3_API_BASE_URL: "${{ vars.REACT_APP_S3_API_BASE_URL }}" | |
REACT_APP_US3R_UPLOAD_IMAGE_ENDPOINT: "${{ vars.REACT_APP_US3R_UPLOAD_IMAGE_ENDPOINT }}" | |
REACT_APP_CERAMIC_HOST: "${{ vars.REACT_APP_CERAMIC_HOST }}" | |
REACT_APP_CHROME_EXTENSION_URL: "${{ vars.REACT_APP_CHROME_EXTENSION_URL }}" | |
REACT_APP_API_SOCIAL_URL: "${{ vars.REACT_APP_API_SOCIAL_URL }}" | |
REACT_APP_XMTP_ENV: "${{ vars.REACT_APP_XMTP_ENV }}" | |
REACT_APP_LENS_ENV: "${{ vars.REACT_APP_LENS_ENV }}" | |
REACT_APP_FARCASTER_HUB_URL: "${{ vars.REACT_APP_FARCASTER_HUB_URL }}" | |
REACT_APP_FARCASTER_NETWORK: "${{ vars.REACT_APP_FARCASTER_NETWORK }}" | |
- uses: FirebaseExtended/action-hosting-deploy@v0 | |
with: | |
repoToken: "${{ secrets.GITHUB_TOKEN }}" | |
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_US3R_NETWORK }}" | |
channelId: live | |
projectId: us3r-network | |
target: u3 | |
entryPoint: "./apps/u3/" | |
dev_build_and_deploy: | |
if: github.ref == 'refs/heads/u3-dev' | |
runs-on: ubuntu-latest | |
environment: | |
name: development | |
url: https://dev.u3.xyz | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: "20" | |
- run: | | |
cd apps/u3 | |
yarn | |
yarn build | |
env: | |
CI: false | |
REACT_APP_NAME: "U3 DEV" | |
NODE_OPTIONS: "--max_old_space_size=4096" | |
REACT_APP_API_BASE_URL: "${{ vars.REACT_APP_API_BASE_URL }}" | |
REACT_APP_S3_API_BASE_URL: "${{ vars.REACT_APP_S3_API_BASE_URL }}" | |
REACT_APP_US3R_UPLOAD_IMAGE_ENDPOINT: "${{ vars.REACT_APP_US3R_UPLOAD_IMAGE_ENDPOINT }}" | |
REACT_APP_CERAMIC_HOST: "${{ vars.REACT_APP_CERAMIC_HOST }}" | |
REACT_APP_CHROME_EXTENSION_URL: "${{ vars.REACT_APP_CHROME_EXTENSION_URL }}" | |
REACT_APP_API_SOCIAL_URL: "${{ vars.REACT_APP_API_SOCIAL_URL }}" | |
REACT_APP_XMTP_ENV: "${{ vars.REACT_APP_XMTP_ENV }}" | |
REACT_APP_LENS_ENV: "${{ vars.REACT_APP_LENS_ENV }}" | |
REACT_APP_FARCASTER_HUB_URL: "${{ vars.REACT_APP_FARCASTER_HUB_URL }}" | |
REACT_APP_FARCASTER_NETWORK: "${{ vars.REACT_APP_FARCASTER_NETWORK }}" | |
- uses: FirebaseExtended/action-hosting-deploy@v0 | |
with: | |
repoToken: "${{ secrets.GITHUB_TOKEN }}" | |
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_US3R_NETWORK }}" | |
channelId: live | |
projectId: us3r-network | |
target: u3-dev | |
entryPoint: "./apps/u3/" |