Skip to content

feat: callback 动画 #25

feat: callback 动画

feat: callback 动画 #25

Workflow file for this run

name: sast link frontend
on:
# push:
# branches: ["master"]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18.17.1
- name: sync to server
uses: burnett01/[email protected]
with:
switches: -rv
path: ./
remote_path: /home/link/${{ secrets.HOST }}/frontend/
remote_host: ${{ secrets.HOST }}
remote_user: ${{ secrets.USERNAME }}
remote_key: ${{ secrets.DEPLOY_KEY }}
- name: restart service
uses: appleboy/[email protected]
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.DEPLOY_KEY }}
port: ${{ secrets.PORT }}
script: |
cd ${{ secrets.HOST }}/frontend
rm -r .next
echo =====$(pwd)=====
pnpm i
pnpm build
pm2 list | grep -q "link" && pm2 restart "sast-link" || pm2 start pnpm --name "sast-link" -- start