-
Notifications
You must be signed in to change notification settings - Fork 749
54 lines (51 loc) · 1.65 KB
/
coins.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
46
47
48
49
50
51
52
53
54
name: Coins
on:
push:
branches: [ master ]
defaults:
run:
working-directory: coins
jobs:
changes:
runs-on: ubuntu-latest
outputs:
coins: ${{ steps.filter.outputs.coins }}
steps:
- uses: actions/checkout@v2
- uses: dorny/paths-filter@v2
id: filter
with:
filters: |
coins:
- 'coins/**'
deploy:
needs: changes
if: ${{ needs.changes.outputs.coins == 'true' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Get Node.js
uses: actions/setup-node@v1
with:
node-version: '14.x'
- run: (npm ci || npm i) && ln -s ../coins/node_modules/ ../defi/node_modules
- name: Deploy infrastructure stack
run: npm run deploy:prod
env:
ETHEREUM_RPC: ${{ secrets.ETHEREUM_RPC }}
POLYGON_RPC: ${{ secrets.POLYGON_RPC }}
BSC_RPC: ${{ secrets.BSC_RPC }}
FANTOM_RPC: ${{ secrets.FANTOM_RPC }}
ARBITRUM_RPC: ${{ secrets.ARBITRUM_RPC }}
OPTIMISM_RPC: ${{ secrets.OPTIMISM_RPC }}
XDAI_RPC: ${{ secrets.XDAI_RPC }}
HARMONY_RPC: ${{ secrets.HARMONY_RPC }}
SOLANA_RPC: ${{ secrets.SOLANA_RPC }}
CG_KEY: ${{ secrets.CG_KEY }}
MISSING_COINS_DB_PWD: ${{ secrets.MISSING_COINS_DB_PWD }}
STALE_COINS_ADAPTERS_WEBHOOK: ${{ secrets.STALE_COINS_ADAPTERS_WEBHOOK }}
R2_ACCESS_KEY_ID: ${{ secrets.R2_ACCESS_KEY_ID }}
R2_SECRET_ACCESS_KEY: ${{ secrets.R2_SECRET_ACCESS_KEY }}
R2_ENDPOINT: ${{ secrets.R2_ENDPOINT }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}