diff --git a/.github/workflows/production.yaml b/.github/workflows/production.yaml index 77b232df..2c6bf655 100644 --- a/.github/workflows/production.yaml +++ b/.github/workflows/production.yaml @@ -44,6 +44,8 @@ jobs: port: ${{ secrets.PROD_PORT }} script: | cd salesparrow-api + echo "Moving jar file" + echo $(ls | grep "\.jar$" | tail -n 1) mv $(ls | grep "\.jar$" | tail -n 1) app.jar chmod 777 app.jar sudo systemctl stop app.service diff --git a/.github/workflows/staging.yaml b/.github/workflows/staging.yaml index b7086fab..507a373e 100644 --- a/.github/workflows/staging.yaml +++ b/.github/workflows/staging.yaml @@ -53,6 +53,8 @@ jobs: port: ${{ secrets.STAGING_PORT }} script: | cd salesparrow-api + echo "Moving jar file" + echo $(ls | grep "\.jar$" | tail -n 1) mv $(ls | grep "\.jar$" | tail -n 1) app.jar chmod 777 app.jar sudo systemctl stop app.service