Skip to content

Commit

Permalink
fix: change the place of use node
Browse files Browse the repository at this point in the history
  • Loading branch information
bbb169 committed Oct 16, 2023
1 parent 3b1b242 commit 582e20e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,13 @@ jobs:
run: |
rsync -avz --exclude=".git" --exclude="node_modules" clone-files/ root@${{secrets.REMOTE_HOST}}:${{secrets.REMOTE_SERVER_DIR}}
ls -a
- name: 启动 pm2
- name: 设置 node 环境
uses: actions/setup-node@v3
with:
node-version: "19.1.0"

- name: 启动 pm2
run: |
ssh root@${{secrets.REMOTE_HOST}} "
cd ${{secrets.REMOTE_SERVER_DIR}};
Expand Down

0 comments on commit 582e20e

Please sign in to comment.