Skip to content

fix: 长度修改为100 #51

fix: 长度修改为100

fix: 长度修改为100 #51

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