From 06290fd6ff55ba176deac155958a85e62bcb47d2 Mon Sep 17 00:00:00 2001 From: hello8693 <1320998105@qq.com> Date: Wed, 28 Aug 2024 20:59:19 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=89=93=E5=8C=85=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/publish.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 9a92ea6..54eb6e6 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -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 @@ -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