You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
exclamation-mark-charity/.github/workflows/deploy.yml

23 lines
527 B
YAML

3 years ago
name: Deploy
3 years ago
on:
push:
branches:
- main
jobs:
3 years ago
deploy:
3 years ago
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 }}