Skip to content

Commit

Permalink
feat: staging IPFS deployment (#39)
Browse files Browse the repository at this point in the history
* Staging

* Apply suggestions from code review

Co-authored-by: Lukas Strassel <lukasstrassel@googlemail.com>

Co-authored-by: Lukas Strassel <lukasstrassel@googlemail.com>
  • Loading branch information
qwolphin and sakulstra committed Oct 12, 2021
1 parent a5bc773 commit 99db1fd
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Deploy

on:
push:
branches:
- master

jobs:
deploy_ipfs:
runs-on: ubuntu-latest
container: node:14
env:
REACT_APP_SUPPORTED_ETHEREUM_NETWORKS: 'kovan,mumbai,fuji,mainnet,polygon,avalanche'
REACT_APP_DEFAULT_ETHEREUM_NETWORK: 'mainnet'
REACT_APP_ENABLE_CACHING_BACKEND: 'true'
REACT_APP_RATES_HISTORY_ENDPOINT: 'https://aave-api-v2.aave.com/data/rates-history'
REACT_APP_ENABLE_NASH: 'true'
steps:
- uses: actions/checkout@v2

- name: install
run: npm ci

- name: Build and pinata upload
id: deploy
env:
PINATA_API_KEY: ${{ secrets.PINATA_API_KEY }}
PINATA_SECRET_KEY: ${{ secrets.PINATA_SECRET_KEY }}
CF_API_TOKEN: ${{ secrets.CF_API_TOKEN }}
CF_ZONE_ID: ${{ secrets.CF_ZONE_ID }}
PIN_ALIAS: staging
CF_DEPLOYMENT_DOMAIN: staging-ipfs.aave.com
run: npm run pinata:ipfs-publish

0 comments on commit 99db1fd

Please sign in to comment.