From 201b58b62f21533d9da678eb024e4b92b063f84d Mon Sep 17 00:00:00 2001 From: Hoan Nguyen Date: Wed, 29 May 2024 17:10:36 +0700 Subject: [PATCH] update script --- .github/workflows/dev-build.yml | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/.github/workflows/dev-build.yml b/.github/workflows/dev-build.yml index a7a8069e1..d06028069 100644 --- a/.github/workflows/dev-build.yml +++ b/.github/workflows/dev-build.yml @@ -21,14 +21,11 @@ jobs: cache: maven - name: Build with Maven run: mvn clean package -DskipTests - - - name: Prepare deployment directory - run: mkdir -p deployment && cp target/*.war deployment/ - - - name: Copy WAR to Tomcat server - run: sudo cp deployment/*.war /opt/tomcat/webapps/marketplace-server.war - - - name: Restart Tomcat server - run: | + - name: Prepare deployment directory + run: mkdir -p deployment && cp target/*.war deployment/ + - name: Copy WAR to Tomcat server + run: sudo cp deployment/*.war /opt/tomcat/webapps/marketplace-server.war + - name: Restart Tomcat server + run: | sudo systemctl stop tomcat sudo systemctl start tomcat