Skip to content

Commit 73e4fdf

Browse files
authored
[Docs] Fix jar file path
1 parent adb692c commit 73e4fdf

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/CD.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,7 @@ jobs:
4040
username: ${{ secrets.EC2_USER }}
4141
key: ${{ secrets.EC2_SSH_KEY }}
4242
script: |
43+
JAR_PATH=$(find /home/ubuntu/app/ -type f -name '*SNAPSHOT.jar' -print0 | xargs -0 ls -t | head -1)
44+
sudo mv "${JAR_PATH}" /home/ubuntu/app/application.jar
4345
sudo systemctl daemon-reload
4446
sudo systemctl restart whois-server

0 commit comments

Comments
 (0)