From 72a283dd5d9c8b34029b8d5f57a37b44f747aa00 Mon Sep 17 00:00:00 2001 From: Pratik Sharma <118264213+prsh2000@users.noreply.github.com> Date: Sun, 29 Oct 2023 21:28:02 +0530 Subject: [PATCH] Update maven.yml added deployment step --- .github/workflows/maven.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 24022c3..e18d4c8 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -28,5 +28,7 @@ jobs: cache: maven - name: Build with Maven run: mvn -B package --file Blogging-App/pom.xml + - name: Execute Jar file + run: sudo kill -9 `sudo lsof -t -i:8080` & sudo java -jar /home/ubuntu/actions-runner/_work/BloggingPlatform-App/BloggingPlatform-App/Blogging-App/target/Blogging-App-0.0.1-SNAPSHOT.jar &