Skip to content

Commit bd365b9

Browse files
authored
Added automatic deploy action
1 parent 8211559 commit bd365b9

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/main.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Deploy Main
2+
on:
3+
push:
4+
branches:
5+
- main
6+
jobs:
7+
build:
8+
name: Build
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Execute remote SSH commands using password
12+
uses: appleboy/ssh-action@v1
13+
with:
14+
host: ${{ secrets.HOST }}
15+
key: ${{ secrets.SSH_KEY }}
16+
script: ${{secrtets.REPO_PATH}} deploy.sh -b main

0 commit comments

Comments
 (0)