From 2661d529898f8450eaa78aa5e7753d06e5f1505e Mon Sep 17 00:00:00 2001 From: Okesanya Odunayo <94924061+DrInTech22@users.noreply.github.com> Date: Sat, 24 Aug 2024 17:39:50 +0100 Subject: [PATCH] Update regression workflow --- .github/workflows/regression-test.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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 + +