update workflow
This commit is contained in:
parent
66ac335914
commit
1e51be3097
16
.github/workflows/main.yml
vendored
16
.github/workflows/main.yml
vendored
@ -21,22 +21,6 @@ jobs:
|
|||||||
needs: build-and-test
|
needs: build-and-test
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
|
|
||||||
- name: SSH and Restart EU Server
|
|
||||||
uses: appleboy/ssh-action@v1.0.0
|
|
||||||
with:
|
|
||||||
host: ${{ secrets.EU_IP_ADDRESS }}
|
|
||||||
username: ${{ secrets.EU_USERNAME }}
|
|
||||||
key: ${{ secrets.SSH_KEY }}
|
|
||||||
script: |
|
|
||||||
cd backend/
|
|
||||||
git reset --hard
|
|
||||||
git pull https://${{ secrets.GIT_PASSWORD }}:x-oauth-basic@github.com/stocknear/backend.git
|
|
||||||
pm2 restart fastapi
|
|
||||||
pm2 restart fastify
|
|
||||||
|
|
||||||
- name: SSH and Restart USEast Server
|
- name: SSH and Restart USEast Server
|
||||||
uses: appleboy/ssh-action@v1.0.0
|
uses: appleboy/ssh-action@v1.0.0
|
||||||
with:
|
with:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user