Skip to content

Commit

Permalink
fix deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
wook-hyung committed Dec 9, 2023
1 parent 18c3e79 commit fabca06
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,6 @@ jobs:
node-version: [16.x]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: executing remote ssh commands using password
uses: appleboy/[email protected]
with:
Expand All @@ -27,7 +22,12 @@ jobs:
port: ${{ secrets.PORT }}
script: |
whoami
cd /root/312TEN034-backend
git pull origin main
npm install --force
pm2 restart 0
script: |
whoami
cd /root/312TEN034-backend
git pull origin main
ln -s /root/.nvm/nvm.sh /root/nvm.sh
source /root/nvm.sh
nvm use v16.20.2
npm install --force
pm2 restart 0

0 comments on commit fabca06

Please sign in to comment.