forked from aave/aave-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (33 loc) · 1.12 KB
/
main.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
name: CI
on:
pull_request:
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'
NGINX_MODE: 'staging'
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 }}
PIN_ALIAS: "${{ format('pull_request_{0}', github.head_ref) }}"
run: npm run pinata:ipfs-publish
- uses: actions/github-script@v5
with:
script: |
github.rest.issues.createComment({
issue_number: context.payload.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: 'Preview link: ${{steps.deploy.outputs.uri}}'
})