use FLOOR for score_phoenix migration to fix old data #47
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 API | |
on: | |
push: | |
branches: ['master'] | |
paths: ['packages/api/**'] | |
jobs: | |
test: | |
uses: ./.github/workflows/test-api.yml | |
build: | |
needs: test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Connect to server and deploy API | |
uses: appleboy/[email protected] | |
with: | |
host: api.pumpking.top | |
username: piutop | |
password: ${{ secrets.PIUTOP_PASSWORD }} | |
script: | | |
set -e | |
cd ~/pumpking | |
git status | |
git pull | |
npm install --no-save | |
cd ./packages/api | |
bash ./restart-server.sh |