Merge pull request #12 from spectrum-finance/tokens-file-fixes #3
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: Deploy token list | |
on: | |
push: | |
branches: | |
- "main" | |
jobs: | |
release: | |
name: Deploy | |
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: Publish The 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 }} |