Skip to content

Added susd to the list (#482) #519

Added susd to the list (#482)

Added susd to the list (#482) #519

Workflow file for this run

name: Deploy
on:
push:
branches:
- main
jobs:
deploy:
name: deploy
runs-on: ubuntu-latest
steps:
- name: Setup Node.js environment
uses: actions/[email protected]
with:
cache: yarn
cache-dependency-path: yarn.lock
node-version: 16
- name: Check out code
uses: actions/checkout@v2
with:
fetch-depth: 2
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v2
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Installing dependencies
run: yarn install --frozen-lockfile
- name: Lint
run: yarn rome ci ./src
- name: Build
run: yarn build:swc
- name: Tests
run: yarn test
- name: deploy bot
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.KEY }}
port: ${{ secrets.PORT }}
script: |
cd ep-api
git pull
yarn
yarn build:swc
pm2 update