update workflows

This commit is contained in:
long2ice
2020-04-27 23:03:54 +08:00
parent d2572dadb2
commit 8f290cc1d7
2 changed files with 18 additions and 12 deletions

17
.github/workflows/deploy.yml vendored Normal file
View File

@@ -0,0 +1,17 @@
name: deploy
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Deploy
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.KEY }}
port: ${{ secrets.PORT }}
script: |
cd /root/fastapi-admin/
git pull
supervisorctl restart fastapi-admin

View File

@@ -21,15 +21,4 @@ jobs:
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.pypi_password }}
- name: Deploy
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.KEY }}
port: ${{ secrets.PORT }}
script: |
cd /root/fastapi-admin/
git pull
supervisorctl restart fastapi-admin
password: ${{ secrets.pypi_password }}