From 94061891e37bb6c40e33ee323c92664d71ea8e61 Mon Sep 17 00:00:00 2001 From: michael1986 Date: Thu, 27 Nov 2025 13:20:40 +0100 Subject: [PATCH] all --- .github/workflows/build.yml | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5a06521..7ca9490 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -27,23 +27,15 @@ jobs: - name: Build with Maven run: mvn -B clean package - - name: Copy jar to server (direct) - uses: appleboy/scp-action@v0.1.7 - with: - host: ${{ secrets.SERVER_IP }} - username: ${{ secrets.SERVER_USER }} - key: ${{ secrets.SERVER_SSH_KEY }} - source: "target/*.jar" - target: "/opt/auction/" - tar_ignore: true - overwrite: true - - - name: Rename jar + restart + - name: Deploy JAR via native SCP uses: appleboy/ssh-action@v0.1.7 with: host: ${{ secrets.SERVER_IP }} username: ${{ secrets.SERVER_USER }} key: ${{ secrets.SERVER_SSH_KEY }} script: | - mv /opt/auction/*.jar /opt/auction/app.jar + echo "Copying JAR to server..." + scp -o StrictHostKeyChecking=no target/troostwijk-scraper-1.0-SNAPSHOT-jar-with-dependencies.jar ${{ secrets.SERVER_USER }}@${{ secrets.SERVER_IP }}:/opt/auction/app.jar + echo "Restarting service..." sudo systemctl restart auction + echo "Deploy complete"