Skip to content

Commit 64b7250

Browse files
authored
Merge pull request #110 from renproject/github-pages
GitHub pages
2 parents eb28c30 + 18755df commit 64b7250

6 files changed

Lines changed: 176 additions & 90 deletions

File tree

.env.gh-pages

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
REACT_APP_NETWORK=mainnet
2+
REACT_APP_INFURA_KEY=ddd2f2140b4843729da5b03ea51b564b

.github/workflows/main.yml

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,43 @@
11
name: CI
22

3-
on: pull_request
3+
on:
4+
push:
5+
branches:
6+
- master
47

58
jobs:
69
lint:
710
runs-on: ubuntu-latest
811
steps:
912
- uses: actions/checkout@v2
13+
1014
- name: Setup Node.js environment
1115
uses: actions/setup-node@v2.1.0
16+
1217
- name: Install dependencies
1318
run: yarn --skip-integrity-check
19+
1420
- name: Verify dependencies
1521
run: yarn check --integrity
22+
1623
- name: lint
1724
run: yarn lint | true
18-
# FIXME: get the tests to pass
25+
26+
- run: yarn build
27+
env:
28+
CI: false
29+
REACT_APP_BLOCKNATIVE_INFURA_KEY: ${{ secrets.REACT_APP_BLOCKNATIVE_INFURA_KEY }}
30+
REACT_APP_BLOCKNATIVE_KEY: ${{ secrets.REACT_APP_BLOCKNATIVE_KEY }}
31+
REACT_APP_DEV_INFURA_KEY: ${{ secrets.REACT_APP_DEV_INFURA_KEY }}
32+
REACT_APP_INFURA_KEY: ${{ secrets.REACT_APP_INFURA_KEY }}
33+
REACT_APP_SENTRY_DSN: ${{ secrets.REACT_APP_SENTRY_DSN }}
34+
35+
- name: DeployGHP
36+
uses: JamesIves/github-pages-deploy-action@v4
37+
with:
38+
folder: build
39+
40+
# FIXME: get the tests to pass
1941
# test:
2042
# runs-on: ubuntu-latest
2143
# steps:

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ coverage.json
1515

1616
# Configuration files
1717
*.env
18-
.env*
18+
.env
1919

2020
# OS files
2121
.DS_Store

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
"test": "react-scripts test --testPathIgnorePatterns=src/lib/ethereum",
1414
"test-contracts": "react-scripts test --testPathPattern=src/lib/ethereum --globalSetup=./src/test/globalSetup.ts --globalTeardown=./src/test/globalTeardown.ts",
1515
"start": "./.env || true; react-scripts start",
16-
"build": "REACT_APP_SOURCE_VERSION=$SOURCE_VERSION react-scripts --max_old_space_size=4096 build",
16+
"build": "env-cmd -f ./.env.gh-pages react-scripts --max_old_space_size=4096 build",
17+
"postbuild": "echo $COMMIT_REF > build/build.html && cp build/index.html build/ipfs-404.html && cp build/index.html build/404.html",
1718
"analyze": "source-map-explorer 'build/static/js/*.js'",
1819
"eject": "react-scripts eject"
1920
},
@@ -54,6 +55,7 @@
5455
"bnc-onboard": "^1.34.1",
5556
"bs58": "^4.0.1",
5657
"d3-geo-projection": "^4.0.0",
58+
"env-cmd": "^10.1.0",
5759
"ethereumjs-util": "^7.1.0",
5860
"eventsource": "^2.0.2",
5961
"graphql": "^15.5.1",

src/controllers/pages/networkStatsPage/DoughnutChart.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ export const DoughnutChart: React.FC<Props> = ({
145145
<span className="overview--chart--legend--faded">
146146
{standardAmount}{" "}
147147
{token}
148-
{" - "}
148+
{/*{" - "}*/}
149149
</span>
150150
) : entry.amount.isGreaterThan(
151151
0,
@@ -157,12 +157,12 @@ export const DoughnutChart: React.FC<Props> = ({
157157
{" - "}
158158
</span>
159159
) : null}
160-
<CurrencyIcon
161-
currency={
162-
quoteCurrency
163-
}
164-
/>
165-
{entry.quote.toFormat(2)}
160+
{/*<CurrencyIcon*/}
161+
{/* currency={*/}
162+
{/* quoteCurrency*/}
163+
{/* }*/}
164+
{/*/>*/}
165+
{/*{entry.quote.toFormat(2)}*/}
166166
</div>
167167
</div>
168168
);

0 commit comments

Comments
 (0)