Skip to content

Commit

Permalink
Deploy: 자동 배포 로직(CI) 구현 (#56)
Browse files Browse the repository at this point in the history
Deploy: 깃액션 deploy.yml 파일 추가
  • Loading branch information
GitJIHO authored Oct 11, 2024
1 parent 7b16447 commit 41b3668
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Deploy

on:
push:
branches:
- Weekly

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up SSH
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}

- name: Run deployment script on server
run: |
ssh -o StrictHostKeyChecking=no ubuntu@${{ secrets.SERVER_IP }} 'bash /home/ubuntu/deploy.sh'

0 comments on commit 41b3668

Please sign in to comment.