Skip to content

Commit

Permalink
Add deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
pgDora56 committed Jul 25, 2024
1 parent b24e08d commit 0f36111
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Deploy to Nance server
on:
push:
branches: [master]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install SSH Key for Deploy
uses: appleboy/ssh-action@master
with:
key: ${{secrets.SERVER_SECRET}}
host: ${{secrets.SERVER_HOSTNAME}}
username: ${{secrets.SERVER_USER}}
port: 22
script: |
cd /works/bot/mocho
git pull origin master
supervisorctl restart Mocho

0 comments on commit 0f36111

Please sign in to comment.