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: