From 9faea1081c1713310a87f08544d291bdcfa3c0f0 Mon Sep 17 00:00:00 2001 From: shuai Date: Mon, 17 Jun 2024 02:09:47 +0800 Subject: [PATCH] update --- .github/workflows/release.yml | 25 ++++++++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4fb6afb..059e91d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,9 +11,12 @@ jobs: build: - name: Release/windows + name: Release/ # if: startsWith(github.ref, 'refs/heads/release/') - runs-on: windows-latest + runs-on: ${{matrix.os}} + strategy: + matrix: + os: [macos-latest, windows-latest] steps: - uses: actions/checkout@v4 @@ -33,17 +36,33 @@ jobs: with: node-version: ${{env.NODE_VERSION}} - - name: publish + - name: build windows + - if: matrix.os == 'windows-latest' working-directory: neo3-gui/neo3-gui env: CI: false run: sh publish.sh + - name: build mac + - if: matrix.os == 'macos-latest' + working-directory: neo3-gui/neo3-gui + env: + CI: false + run: sh publish.macos.sh + - name: Upload release files + - if: matrix.os == 'windows-latest' uses: actions/upload-artifact@v4 with: name: release-win path: neo3-gui/neo3-gui/ClientApp/build-electron/*.exe + + - name: Upload Mac Release Files + - if: matrix.os == 'macos-latest' + uses: actions/upload-artifact@v4 + with: + name: release-mac + path: neo3-gui/neo3-gui/ClientApp/build-electron/*.dmg