We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 23176e6 commit 05df3c1Copy full SHA for 05df3c1
.github/workflows/deploy.yaml
@@ -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