Skip to content

Commit

Permalink
update script
Browse files Browse the repository at this point in the history
  • Loading branch information
Hoan Nguyen committed May 29, 2024
1 parent a91cddb commit 201b58b
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions .github/workflows/dev-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 201b58b

Please sign in to comment.