Skip to content

Commit 67c634d

Browse files
add workflow (#25)
1 parent f51d537 commit 67c634d

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
jobs:
2+
deploy:
3+
name: Deploy bot
4+
runs-on: ubuntu-latest
5+
steps:
6+
- name: Remote deploy
7+
uses: appleboy/ssh-action@master
8+
with:
9+
host: ${{ secrets.SSH_HOST }}
10+
key: ${{ secrets.SSH_KEY }}
11+
port: ${{ secrets.SSH_PORT }}
12+
script: |
13+
cd ~/projects/pythonista-bot/
14+
git stash || true
15+
git pull --force || true
16+
docker compose up --build -d
17+
username: ${{ secrets.SSH_USER }}
18+
19+
name: Deploy
20+
21+
on:
22+
push:
23+
branches:
24+
- main

0 commit comments

Comments
 (0)