diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index 950d221..25aa620 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -26,12 +26,15 @@ jobs: - name: Build and Package with Maven run: mvn clean package -DskipTests + - name: Rename JAR locally + run: mv target/*-jar-with-dependencies.jar target/notifier.jar + - name: Deploy JAR to Server uses: appleboy/scp-action@master with: host: ${{ secrets.SERVER_IP }} username: ${{ secrets.SERVER_USERNAME }} password: ${{ secrets.SERVER_PASSWORD }} - source: "target/*-jar-with-dependencies.jar" - target: "/opt/notifier/notifier.jar" + source: "target/notifier.jar" + target: "/opt/notifier" strip_components: 1 \ No newline at end of file