dev(ci): 再 次 修 复

This commit is contained in:
MKStoler 2024-12-19 02:07:28 +00:00
parent afa9c45717
commit e5767cedd7

View File

@ -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: