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