Update build_and_deploy.yml

This commit is contained in:
Filip Koňařík
2023-09-27 10:23:50 +02:00
committed by GitHub
parent ca12e7a0d5
commit 77d91b56cb

View File

@@ -31,6 +31,6 @@ jobs:
- name: Stop service
run: ssh ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }} "systemctl stop OAuthServer"
- name: Deploy with rsync
run: rsync -avz /home/runner/work/oauth-playground-server/oauth-playground-server/target/oauth-playground-server-1.0.0-SNAPSHOT-runner.jar ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }}:/var/oauth-online-server
run: rsync -avz /target/oauth-playground-server-1.0.0-SNAPSHOT-runner.jar ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }}:/var/oauth-online-server
- name: Start service
run: ssh ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }} "systemctl start OAuthServer"