Skip to content

Commit

Permalink
Update auto-deployment.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
wwingyou authored Mar 25, 2024
1 parent afeb66d commit d536f81
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/auto-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,14 @@ jobs:
working-directory: JWT
- name: Upload deployment scripts
run: |
ls
scp -i private_key.pem -r deploy "${username}@${host}:~"
sudo chmod 755 deploy/*
working-directory: JWT
- name: Kill current running Spring process
run: |
ssh -i private_key.pem "${username}@${host}"
sudo chmod 755 deploy/shutdown.sh
./deploy/shutdown.sh
./deploy/backup.sh
working-directory: JWT
- name: Send jar file to EC2
run: |
Expand All @@ -65,6 +65,5 @@ jobs:
- name: Run new uploaded jar
run: |
ssh -i private_key.pem "${username}@${host}"
sudo chmod 755 deploy/runner.sh
./deploy/runner.sh server.jar
./deploy/startup.sh server.jar
working-directory: JWT

0 comments on commit d536f81

Please sign in to comment.