Add deploy.yml

pull/8/head
sgoudham 3 years ago
parent 00c7770faf
commit 8561ea6cc3
Signed by: hammy
GPG Key ID: 44E818FD5457EEA4

@ -0,0 +1,21 @@
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Restart !charity Bot via SSH
uses: fifsky/ssh-action@master
with:
command: |
cd exclamation-mark-charity/
sudo systemctl stop exclamation-mark-charity.service
bash backup.sh
git pull
sudo systemctl start exclamation-mark-charity.service
host: ${{ secrets.HOST }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
Loading…
Cancel
Save