Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ jobs:

runs-on: ubuntu-latest

environment:
name: testnet
url: https://testnet.manager.rns.rifos.org/

steps:
- name: Checkout
uses: actions/checkout@v2
Expand All @@ -22,7 +26,9 @@ jobs:
run: yarn

- name: Build site
run: yarn build:testnet
run: |
export REACT_APP_GIT_HASH=${{ github.sha }}
yarn build:testnet

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
Expand All @@ -43,6 +49,10 @@ jobs:

runs-on: ubuntu-latest

environment:
name: mainnet
url: https://manager.rns.rifos.org/

steps:
- name: Checkout
uses: actions/checkout@v2
Expand All @@ -56,7 +66,9 @@ jobs:
run: yarn

- name: Build site
run: yarn build:mainnet
run: |
export REACT_APP_GIT_HASH=${{ github.sha }}
yarn build:mainnet

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/gh-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ jobs:
- name: Install and Build for Testnet 🔧 # This example project is built using npm and outputs the result to the 'build' folder. Replace with the commands required to build your project, or remove this step entirely if your site is pre-built.
run: |
yarn install --network-timeout 100000 || yarn install --network-timeout 100000 || yarn install --network-timeout 100000
export REACT_APP_GIT_HASH=${{ github.sha }}
yarn build:ghpages

- name: Deploy 🚀
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/qa-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ jobs:
run: yarn

- name: Build site
run: yarn build:mainnet
run: |
export REACT_APP_GIT_HASH=${{ github.sha }}
yarn build:mainnet

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
Expand Down
1 change: 1 addition & 0 deletions src/app/components/FooterComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ const FooterComponent = (props) => {
{`Copyright © ${new Date().getFullYear()} `}
RootstockLabs. All rights reserved.
{` ${version}`}
{process.env.REACT_APP_GIT_HASH && ` (${process.env.REACT_APP_GIT_HASH.slice(0, 7)})`}
</p>
</Col>
</Row>
Expand Down
Loading