chore: add ssh deploy step (#267)

重新添加 ssh-deploy 的 action 步骤,用于部署到服务器。

/kind improvement

```release-note
None
```
wan92hen-patch-1
Ryan Wang 1 year ago committed by GitHub
parent 6446098581
commit 80ee4a04ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -49,3 +49,14 @@ jobs:
- run: pnpm install
- run: pnpm build
- name: Deploy
uses: easingthemes/ssh-deploy@main
env:
SSH_PRIVATE_KEY: ${{ secrets.SERVER_SSH_KEY }}
ARGS: "-avzr --delete"
SOURCE: "build/"
REMOTE_HOST: ${{ secrets.SERVER_HOST }}
REMOTE_PORT: ${{ secrets.SERVER_PORT }}
REMOTE_USER: ${{ secrets.SERVER_USER }}
TARGET: ${{ secrets.SERVER_TARGET }}

Loading…
Cancel
Save