Skip to content

Commit

Permalink
Update deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
kangood committed May 24, 2024
1 parent d3585a4 commit 76cd29e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,21 @@ jobs:

- name: Build Next.js app
run: pnpm build

- name: Check pnpm and pm2 installation1
run: |
echo $(which pnpm)
echo $(which pm2)
- name: Install pnpm and pm2
run: |
npm install -g pnpm
npm install -g pm2
- name: Check pnpm and pm2 installation2
run: |
echo $(which pnpm)
echo $(which pm2)
- name: Deploy to Custom Server
uses: appleboy/ssh-action@master
Expand All @@ -38,6 +48,7 @@ jobs:
username: ${{ secrets.SERVER_USERNAME }}
key: ${{ secrets.SERVER_SSH_KEY }}
script: |
bash -l {0}
cd /home/project/blog-web
git pull origin master
pnpm install --production
Expand Down

0 comments on commit 76cd29e

Please sign in to comment.