Skip to content

Commit 36b982b

Browse files
authored
Added github action to deploy to prod (#301)
1 parent 1479b9b commit 36b982b

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/deployProd.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Deploy on Production
2+
3+
on:
4+
push:
5+
branches:
6+
- 'master'
7+
8+
jobs:
9+
deploy:
10+
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v1
15+
16+
- name: Git pull and rebuild docker
17+
uses: appleboy/ssh-action@master
18+
with:
19+
host: ${{ secrets.HOST }}
20+
username: ${{ secrets.USERNAME }}
21+
port: ${{ secrets.PORT }}
22+
key: ${{ secrets.SSHKEY }}
23+
script: ${{ secrets.PRODSCRIPT }}

0 commit comments

Comments
 (0)