Merge pull request #107 from spacemeshos/upload-to-testnet-atxmerge #48
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
- name: Build to testnet-atxmerge Dashboard | |
env: | |
REACT_APP_DISCOVERY_SERVICE_URL: https://configs.spacemesh.network/networks-testnet-atxmerge.json | |
run: | | |
yarn | |
yarn build | |
- name: Upload to testnet-atxmerge Dashboard | |
run: gsutil -m rsync -r -d ./build gs://testnet-atxmerge-dashboard.spacemesh.network |