diff --git a/.github/workflows/regression-test.yml b/.github/workflows/regression-test.yml index 7ca436d9..692edfea 100644 --- a/.github/workflows/regression-test.yml +++ b/.github/workflows/regression-test.yml @@ -34,3 +34,18 @@ jobs: password: ${{ secrets.PASSWORD }} source: "result.json" target: "/home/${{ secrets.USERNAME }}/hng_boilerplate_python_fastapi_web/staging" + + - name: Deploy to Server + uses: appleboy/ssh-action@master + with: + host: ${{ secrets.HOST }} + username: ${{ secrets.USERNAME }} + password: ${{ secrets.PASSWORD }} + script: | + cd hng_boilerplate_python_fastapi_web/staging + git add . + git stash + git pull origin staging + python3 update_api_status.py + +