Merge pull request #12 from spectrum-finance/tokens-file-fixes #15
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: Release token list | |
on: | |
push: | |
branches: | |
- "main" | |
jobs: | |
release: | |
name: Push default token list | |
runs-on: ubuntu-latest | |
steps: | |
- name: load repo | |
uses: actions/checkout@v3 | |
- name: build | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 14 | |
- run: | | |
yarn install --frozen-lockfile | |
yarn build | |
- name: Push List | |
uses: garygrossgarten/github-action-scp@release | |
with: | |
local: ergo-token-list.json | |
remote: /var/www/tokenlist/ergo-token-list.json | |
host: ${{ secrets.HOST }} | |
username: ${{ secrets.USERNAME }} | |
privateKey: ${{ secrets.KEY }} | |
- name: Push Schema | |
uses: garygrossgarten/github-action-scp@release | |
with: | |
local: src/schema/tokenlist.ergo.schema.json | |
remote: /var/www/tokenlist/tokenlist.ergo.schema.json | |
host: ${{ secrets.HOST }} | |
username: ${{ secrets.USERNAME }} | |
privateKey: ${{ secrets.KEY }} |