Skip to content

Commit 610b6bf

Browse files
committed
chore: 배포 자동화
main 브랜치에 푸시할 때마다 배포
1 parent 018e1f5 commit 610b6bf

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/cd.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: cd
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches: [ main ]
7+
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Deploy
14+
uses: appleboy/[email protected]
15+
with:
16+
host: ${{ secrets.SSH_HOST }}
17+
username: ${{ secrets.SSH_USERNAME }}
18+
password: ${{ secrets.SSH_PASSWORD }}
19+
port: ${{ secrets.SSH_PORT }}
20+
script: ${{ secrets.DEPLOY_SCRIPT }}

0 commit comments

Comments
 (0)