-
Notifications
You must be signed in to change notification settings - Fork 4
37 lines (30 loc) · 965 Bytes
/
ci.yaml
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
name: Deploy
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Init gcloud
run: |
echo "${{ secrets.GCLOUD_KEY }}" | base64 -d > key.json
gcloud auth activate-service-account --key-file=key.json
- name: Build to Mainnet Dashboard
env:
REACT_APP_DISCOVERY_SERVICE_URL: https://configs.spacemesh.network/networks.json
run: |
yarn
yarn build
- name: Upload to Mainnet Dashboard
run: gsutil -m rsync -r -d ./build gs://spacemesh-dash
- name: Build to testnet-13 Dashboard
env:
REACT_APP_DISCOVERY_SERVICE_URL: https://configs.spacemesh.network/networks-testnet-13.json
run: |
yarn
yarn build
- name: Upload to testnet-13 Dashboard
run: gsutil -m rsync -r -d ./build gs://testnet-13-dashboard.spacemesh.network