Skip to content

fix: 修改请求缓冲距离 #45

fix: 修改请求缓冲距离

fix: 修改请求缓冲距离 #45

Workflow file for this run

name: ssh deploy
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
# 接口部署
# steps:
# - name: Triggering deployment using API endpoint
# run: |
# curl -X POST -H "Content-Type: application/json" -d '{}' https://wallpaper.shenzjd.com/api/deploy
# ssh部署
steps:
- name: executing remote ssh commands using password
uses: appleboy/[email protected]
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
port: ${{ secrets.PORT }}
script: |
cd /www/wwwroot/wallpaper.shenzjd.com
git pull
pnpm install
pnpm run build
pm2 restart wallpaper.shenzjd.com