From c801a6de4f71315428b9a2580154f17b59417e54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=9B=BD=E5=AE=9D?= Date: Tue, 5 Mar 2024 10:46:56 +0800 Subject: [PATCH] Update node.js.yml add github page --- .github/workflows/node.js.yml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) 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 }}