diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6e06a96..9a74109 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -27,7 +27,7 @@ jobs: # Step 3: Grant execute permission for Gradle wrapper - name: Grant execute permission for gradlew run: chmod +x gradlew - + # Step 4: Run tests with Gradle - name: Run tests run: ./gradlew test @@ -47,11 +47,13 @@ jobs: port: 22 script: | # Navigate to the server directory and stop the old server (if running) - cd ${{ secrets.SERVER_PATH }} - pkill -f 'java -jar' || echo "No server running" - - # Copy new files - rsync -avz --delete ./build/libs/*.jar ${{ secrets.SSH_USER }}@${{ secrets.SERVER_IP }}:${{ secrets.SERVER_PATH }} - - # Start the new server - nohup java -jar ${{ secrets.SERVER_PATH }}/your-app.jar > output.log 2>&1 & + echo "here" + cd ${{ secrets.SERVER_PATH }} || echo "cannot change to directory" + echo "in right directory" +# pkill -f 'java -jar' || echo "No server running" +# +# # Copy new files +# rsync -avz --delete ./build/libs/*.jar ${{ secrets.SSH_USER }}@${{ secrets.SERVER_IP }}:${{ secrets.SERVER_PATH }} +# +# # Start the new server +# nohup java -jar ${{ secrets.SERVER_PATH }}/your-app.jar > output.log 2>&1 &