From e5767cedd7fc4701c445ebb1948cf7f91058a73c Mon Sep 17 00:00:00 2001 From: MKStoler Date: Thu, 19 Dec 2024 02:07:28 +0000 Subject: [PATCH] =?UTF-8?q?dev(ci):=20=E5=86=8D=20=E6=AC=A1=20=E4=BF=AE=20?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/publish.yaml | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 9a336bb..3e16ec4 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -1,4 +1,4 @@ -name: 发布版本时构建应用 +name: 发布新版本时构建应用 on: release: @@ -22,37 +22,41 @@ jobs: with: node-version: ${{ matrix.node-version }} - - name: Install dependencies - run: yarn config set registry https://registry.npmmirror.com/ - yarn install + - name: 安装依赖 + run: yarn install - - name: Build and package for Windows + + - name: Windows 设置镜像源 if: matrix.os == 'windows-latest' run: yarn build:win - - name: Build and package for macOS + - name: Windows 构建 + if: matrix.os == 'windows-latest' + run: yarn build:win + + - name: MacOS 构建 if: matrix.os == 'macos-latest' run: yarn build:mac - - name: Build and package for Linux + - name: Linux 构建 if: matrix.os == 'ubuntu-latest' run: yarn build:linux - - name: Upload artifact for Windows + - name: Windows 上传 if: matrix.os == 'windows-latest' uses: actions/upload-artifact@v4 with: name: ExamShowboard-Windows path: dist/*.exe - - name: Upload artifact for macOS + - name: MacOS 上传 if: matrix.os == 'macos-latest' uses: actions/upload-artifact@v4 with: name: ExamShowboard-macOS path: dist/*.dmg - - name: Upload artifact for Linux + - name: Linux 上传 if: matrix.os == 'ubuntu-latest' uses: actions/upload-artifact@v4 with: