Skip to content

Commit

Permalink
fix: 打包脚本
Browse files Browse the repository at this point in the history
  • Loading branch information
hello8693 committed Aug 28, 2024
1 parent 272fa13 commit 06290fd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ jobs:


- 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

- 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

- 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

- name: Upload artifact for Windows
Expand All @@ -50,14 +50,14 @@ jobs:
path: dist/*.exe

- 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
with:
name: ExamShowboard-macOS
path: dist/*.dmg

- 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
with:
name: ExamShowboard-Linux
Expand Down

0 comments on commit 06290fd

Please sign in to comment.