feat: feishu login callback #24
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |