-
Notifications
You must be signed in to change notification settings - Fork 15
45 lines (42 loc) · 1.9 KB
/
staging-surge-deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Scaffold-eth Staging Surge Deployer workflow
on:
pull_request:
types: [closed]
branches: [develop]
workflow_dispatch:
jobs:
deployer-job:
name: Deployer job
runs-on: ubuntu-latest
# if: github.event.pull_request.merged == true
steps:
- uses: actions/[email protected]
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: 16.x
- name: Build React App
run: |
cd packages/react-app/ && yarn
CI=false yarn run theme
CI=false yarn run build
cp build/index.html build/200.html
env:
REACT_APP_SERVER: 'https://moonshot-backend.herokuapp.com/'
REACT_APP_NETWORK: 'rinkeby'
REACT_APP_FIRE_API: ${{ secrets.DEV_FIREBASEAPI }}
REACT_APP_FIRE_DOMAIN: ${{ secrets.DEV_FIREBASEDOMAIN }}
REACT_APP_FIRE_ID: ${{ secrets.DEV_FIREBASEID }}
REACT_APP_XDAI_NETWORK: ${{ secrets.REACT_APP_XDAI_NETWORK }}
REACT_APP_MAINNET_NETWORK: ${{ secrets.REACT_APP_MAINNET_NETWORK }}
REACT_APP_RINKEBY_NETWORK: ${{ secrets.REACT_APP_RINKEBY_NETWORK }}
REACT_APP_MATIC_NETWORK: ${{ secrets.REACT_APP_MATIC_NETWORK }}
REACT_APP_ARBITRUM_NETWORK: ${{ secrets.REACT_APP_ARBITRUM_NETWORK }}
REACT_APP_OPTIMISM_NETWORK: ${{ secrets.REACT_APP_OPTIMISM_NETWORK }}
REACT_APP_GOERLI_NETWORK: ${{ secrets.REACT_APP_GOERLI_NETWORK }}
- name: Deploy to surge
uses: dswistowski/surge-sh-action@v1
with:
domain: staging.${{ secrets.domain }}
project: './packages/react-app/build'
token: ${{ secrets.surge_token }}