mirror of
https://hub.gitmirror.com/https://github.com/ExamAware/ExamShowboard-Legacy.git
synced 2025-04-29 03:16:33 +00:00
dev(ci): 再 次 修 复
This commit is contained in:
parent
afa9c45717
commit
e5767cedd7
24
.github/workflows/publish.yaml
vendored
24
.github/workflows/publish.yaml
vendored
@ -1,4 +1,4 @@
|
|||||||
name: 发布版本时构建应用
|
name: 发布新版本时构建应用
|
||||||
|
|
||||||
on:
|
on:
|
||||||
release:
|
release:
|
||||||
@ -22,37 +22,41 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node-version }}
|
node-version: ${{ matrix.node-version }}
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: 安装依赖
|
||||||
run: yarn config set registry https://registry.npmmirror.com/
|
run: yarn install
|
||||||
yarn install
|
|
||||||
|
|
||||||
- name: Build and package for Windows
|
|
||||||
|
- name: Windows 设置镜像源
|
||||||
if: matrix.os == 'windows-latest'
|
if: matrix.os == 'windows-latest'
|
||||||
run: yarn build:win
|
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'
|
if: matrix.os == 'macos-latest'
|
||||||
run: yarn build:mac
|
run: yarn build:mac
|
||||||
|
|
||||||
- name: Build and package for Linux
|
- name: Linux 构建
|
||||||
if: matrix.os == 'ubuntu-latest'
|
if: matrix.os == 'ubuntu-latest'
|
||||||
run: yarn build:linux
|
run: yarn build:linux
|
||||||
|
|
||||||
- name: Upload artifact for Windows
|
- name: Windows 上传
|
||||||
if: matrix.os == 'windows-latest'
|
if: matrix.os == 'windows-latest'
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: ExamShowboard-Windows
|
name: ExamShowboard-Windows
|
||||||
path: dist/*.exe
|
path: dist/*.exe
|
||||||
|
|
||||||
- name: Upload artifact for macOS
|
- name: MacOS 上传
|
||||||
if: matrix.os == 'macos-latest'
|
if: matrix.os == 'macos-latest'
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: ExamShowboard-macOS
|
name: ExamShowboard-macOS
|
||||||
path: dist/*.dmg
|
path: dist/*.dmg
|
||||||
|
|
||||||
- name: Upload artifact for Linux
|
- name: Linux 上传
|
||||||
if: matrix.os == 'ubuntu-latest'
|
if: matrix.os == 'ubuntu-latest'
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user