diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index da00171b..92c5a941 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -22,15 +22,23 @@ jobs: with: node-version: '16' - - name: Install dependencies + - name: Install newUI run: npm install working-directory: ./House-Map.newUI - - name: Build + - name: Build newUI run: npm run build working-directory: ./House-Map.newUI - - name: Deploy + - name: Deploy NewUI + uses: JamesIves/github-pages-deploy-action@v4 + with: + branch: gh-pages + folder: ./House-Map.newUI/dist/ + clean: true + single-commit: true + + - name: Deploy New UI uses: burnett01/rsync-deployments@4.1 with: # 这里是 rsync 的参数 switches: -avzh --delete --exclude="" --include="" --filter="" @@ -40,4 +48,4 @@ jobs: remote_host: ${{ secrets.HOUSE_MAP_SERVER }} remote_port: 22 remote_user: root - remote_key: ${{ secrets.LGB_HOME }} \ No newline at end of file + remote_key: ${{ secrets.LGB_HOME }}