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
1 parent 557f3cc commit 8d732f8
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,24 @@ jobs:
git pull origin main
cd ${{ secrets.PWD }}/BackendJS/BackendTS
npm install
pm2 restart Traffic
if: github.event.pull_request.merged == true && github.head_ref == 'Frontend'
runs-on: ubuntu-latest
steps:
- uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.SSH_KEY }}
#passphrase: ${{ secrets.PASSPHRASE }}
port: 22
script: |
cd ${{ secrets.PWD }}
git pull origin main
cd ${{ secrets.PWD }}/Backend/Frontend/creative
pm2 stop Traffic
npm install
npm run build
cd ${{ secrets.PWD }}/BackendJS/BackendTS
npm install
pm2 restart Traffic

0 comments on commit 8d732f8

Please sign in to comment.