Merge pull request #8572 from DefiLlama/sbtc #14118
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: 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: '16.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 }} |