Skip to content

feat: init

feat: init #1

Workflow file for this run

name: ssh deploy
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
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/tools.shenzjd.com
git pull
pnpm install
pnpm run build
pm2 restart tools.shenzjd.com