Skip to content

Commit

Permalink
Merge pull request #36 from lum-network/improvement/lum-824
Browse files Browse the repository at this point in the history
[LUM-824] Update github workflow
  • Loading branch information
ThibaultJRD authored Sep 11, 2023
2 parents 7e5980a + cba2663 commit 1e27568
Showing 1 changed file with 30 additions and 2 deletions.
32 changes: 30 additions & 2 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Install packages
run: yarn

- name: Build
- name: Build for Mainnet
run: yarn build
env:
REACT_APP_API_URL: "https://explorer-mainnet.infra.lum.network"
Expand All @@ -41,7 +41,7 @@ jobs:
- name: Test
run: yarn test

- name: Deploy
- name: Deploy Mainnet Preview
uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
Expand All @@ -51,3 +51,31 @@ jobs:
target: mainnet
env:
FIREBASE_CLI_PREVIEWS: hostingchannels

- name: Build for Testnet
run: yarn build
env:
REACT_APP_API_URL: "https://explorer-testnet.infra.lum.network"
REACT_APP_IMPERATOR_API_URL: "https://api-osmosis.imperator.co"
GENERATE_SOURCEMAP: "false"
REACT_APP_RPC_LUM: "https://testnet-rpc.cosmosmillions.com/lum/rpc"
REACT_APP_RPC_ATOM: "https://testnet-rpc.cosmosmillions.com/atom/rpc"
REACT_APP_FIREBASE_API_KEY: "AIzaSyA49DTslUcJG2b5TUdI_EbPzugFFXOfO0o"
REACT_APP_FIREBASE_AUTH_DOMAIN: "lum-network.firebaseapp.com"
REACT_APP_FIREBASE_DATABASE_URL: "https://lum-network-default-rtdb.firebaseio.com"
REACT_APP_FIREBASE_PROJECT_ID: "lum-network"
REACT_APP_FIREBASE_STORAGE_BUCKET: "lum-network.appspot.com"
REACT_APP_FIREBASE_MESSAGING_SENDER_ID: "904911254564"
REACT_APP_FIREBASE_APP_ID: "1:904911254564:web:a0297e7aa68664410394b1"
REACT_APP_FIREBASE_MEASUREMENT_ID: "G-FZ28RMP812"

- name: Deploy Testnet Preview
uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT }}'
expires: 7d
projectId: lum-network
target: testnet
env:
FIREBASE_CLI_PREVIEWS: hostingchannels

0 comments on commit 1e27568

Please sign in to comment.