This commit is contained in:
1 parent
3dc5e5cf7f
commit
d3ee10669e
1 file changed
+3
-1
@@ -18,7 +18,9 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
key: ${{ secrets.SSH_KEY }}
|
key: ${{ secrets.SSH_KEY }}
|
||||||
known_hosts: ${{ secrets.SSH_KNOWN_HOSTS }}
|
known_hosts: ${{ secrets.SSH_KNOWN_HOSTS }}
|
||||||
|
- name: Stop the service
|
||||||
|
run: ssh ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }} -o RemoteCommand="systemctl --user stop oopsie_service.service"
|
||||||
- name: Copy to prod
|
- name: Copy to prod
|
||||||
run: scp -rp dist/* ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }}:oopsie/
|
run: scp -rp dist/* ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }}:oopsie/
|
||||||
- name: Restart the service
|
- name: Restart the service
|
||||||
run: ssh ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }} -o RemoteCommand="systemctl --user restart oopsie_service.service"
|
run: ssh ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }} -o RemoteCommand="systemctl --user start oopsie_service.service"
|
||||||
Reference in new issue
Block a user