feat(team): modernize management workspaces #23
This file contains hidden or 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: Preview Dev | |
| on: | |
| push: | |
| branches: | |
| - dev | |
| jobs: | |
| build-and-deploy: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: [v22.14.0] | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Use Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v2 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| ## TODO:下方修改1处 | |
| - name: Install && Build | |
| run: | | |
| npm install | |
| npm run build:dev | |
| mv dist pvbb | |
| ## TODO:下方修改1处 | |
| - name: GrayEnv | |
| uses: appleboy/scp-action@v0.1.4 | |
| with: | |
| host: ${{ secrets.HOST_NANJING2 }} | |
| username: ${{ secrets.DEPLOY_USER }} | |
| key: ${{ secrets.DEPLOY_KEY }} | |
| source: pvbb/* | |
| target: /www/wwwroot/jx3box/test | |
| timeout: 600s | |
| command_timeout: 600s | |
| debug: true |