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