diff --git a/.github/workflows/deploy-api.yml b/.github/workflows/deploy-api.yml index f597729..d9ff200 100644 --- a/.github/workflows/deploy-api.yml +++ b/.github/workflows/deploy-api.yml @@ -1,7 +1,6 @@ name: Pull changes and deploy API on: [push] jobs: - build: name: Build runs-on: self-hosted @@ -13,4 +12,6 @@ jobs: username: ${{ secrets.USERNAME }} password: ${{ secrets.PASSWORD }} port: ${{ secrets.PORT }} - script: whoami + script: | + cd ${{ secrets.APP_FOLDER }} && git pull + supervisorctl restart ${{ secrets.SUPERVISOR_SERVICE_NAME }}