mirror of
https://hub.gitmirror.com/https://github.com/ExamAware/ExamShowboard-Legacy.git
synced 2025-04-29 07:56:33 +00:00
fix: 打包脚本
This commit is contained in:
parent
272fa130a1
commit
06290fd6ff
10
.github/workflows/publish.yaml
vendored
10
.github/workflows/publish.yaml
vendored
@ -31,15 +31,15 @@ jobs:
|
|||||||
|
|
||||||
|
|
||||||
- name: Build and package for Windows
|
- name: Build and package for Windows
|
||||||
if: matrix.os == 'windows-latest'
|
if: github.event.release.prerelease == false && matrix.os == 'windows-latest'
|
||||||
run: yarn build:win
|
run: yarn build:win
|
||||||
|
|
||||||
- name: Build and package for macOS
|
- name: Build and package for macOS
|
||||||
if: matrix.os == 'macos-latest'
|
if: github.event.release.prerelease == true && matrix.os == 'macos-latest'
|
||||||
run: yarn build:mac
|
run: yarn build:mac
|
||||||
|
|
||||||
- name: Build and package for Linux
|
- name: Build and package for Linux
|
||||||
if: matrix.os == 'ubuntu-latest'
|
if: github.event.release.prerelease == true && matrix.os == 'ubuntu-latest'
|
||||||
run: yarn build:linux
|
run: yarn build:linux
|
||||||
|
|
||||||
- name: Upload artifact for Windows
|
- name: Upload artifact for Windows
|
||||||
@ -50,14 +50,14 @@ jobs:
|
|||||||
path: dist/*.exe
|
path: dist/*.exe
|
||||||
|
|
||||||
- name: Upload artifact for macOS
|
- name: Upload artifact for macOS
|
||||||
if: matrix.os == 'macos-latest'
|
if: github.event.release.prerelease == true && 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: Upload artifact for Linux
|
||||||
if: matrix.os == 'ubuntu-latest'
|
if: github.event.release.prerelease == true && matrix.os == 'ubuntu-latest'
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: ExamShowboard-Linux
|
name: ExamShowboard-Linux
|
||||||
|
Loading…
x
Reference in New Issue
Block a user