Skip to content

Commit 1c46b4a

Browse files
committed
fix: gh-pages deploy
1 parent eb28c30 commit 1c46b4a

File tree

3 files changed

+20
-2
lines changed

3 files changed

+20
-2
lines changed

.env.gh-pages

+2
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

+17-1
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,36 @@
11
name: CI
22

3-
on: pull_request
3+
on:
4+
push:
5+
branches:
6+
- github-pages
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/[email protected]
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
25+
26+
- name: Build
27+
run: yarn build
28+
29+
- name: DeployGHP
30+
uses: JamesIves/github-pages-deploy-action@v4
31+
with:
32+
folder: build #folder
33+
1834
# FIXME: get the tests to pass
1935
# test:
2036
# runs-on: ubuntu-latest

.gitignore

+1-1
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

0 commit comments

Comments
 (0)