Skip to content

Commit

Permalink
Modify: yml 파일 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
sw0501 committed Oct 21, 2023
2 parents 1583102 + 4acc665 commit bcc46b9
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ jobs:
key: ${{ secrets.SSH_KEY }}
#passphrase: ${{ secrets.PASSPHRASE }}
port: 22
script: pwd

# npm 의존성 설치
- name: npm install
run: |
pwd
Expand All @@ -26,6 +26,13 @@ jobs:
# Frontend Merge 시 React 빌드
- name: React build
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.SSH_KEY }}
#passphrase: ${{ secrets.PASSPHRASE }}
port: 22
if: github.head_ref == 'Frontend'
run: |
cd ${{ secrets.PWD }}/Backend/Frontend/creative
Expand All @@ -35,6 +42,13 @@ jobs:
# Merge 하는 경우 서버 재시작
- name: server restart
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.SSH_KEY }}
#passphrase: ${{ secrets.PASSPHRASE }}
port: 22
run: |
cd ${{ secrets.PWD }}/BackendJS/BackendTS
npm install
Expand Down

0 comments on commit bcc46b9

Please sign in to comment.