-
Notifications
You must be signed in to change notification settings - Fork 5
35 lines (35 loc) · 1.01 KB
/
tokenlist.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
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 }}