Merge pull request #8 from sgoudham/deploy-workflow

pull/11/head
Hamothy 3 years ago committed by GitHub
commit 17e505cd66
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1,23 @@
name: Deploy
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