Skip to content

Commit 05df3c1

Browse files
Add deploy workflow
1 parent 23176e6 commit 05df3c1

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/deploy.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Deploy
2+
3+
on:
4+
push:
5+
branches: [main]
6+
7+
jobs:
8+
deploy:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Rebuild DB on VPS
12+
uses: appleboy/ssh-action@v1
13+
with:
14+
host: ${{ secrets.VPS_HOST }}
15+
username: ${{ secrets.VPS_USER }}
16+
key: ${{ secrets.VPS_SSH_KEY }}
17+
script: |
18+
cd ${{ secrets.VPS_PROJECT_PATH }}
19+
git pull
20+
./init
21+
docker restart puzzfinder-api

0 commit comments

Comments
 (0)