From 873a0eca61470a7186cc2cf9a96bf487be7b05f5 Mon Sep 17 00:00:00 2001 From: Bruce Date: Sun, 21 Jan 2024 01:22:59 -0800 Subject: [PATCH 1/2] release for mac --- .github/workflows/release.yml | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 66ec7d8..4481e52 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -48,4 +48,31 @@ jobs: #- name: Upload to blob # run: az storage copy -s "./SciuridaeReleases/ColorKrakenSetup.exe" -d "https://sciuridae.blob.core.windows.net/test/ColorKrakenSetup.exe" --connection-string "${{ secrets.BLOB_CONNECTION_STRING }}" - \ No newline at end of file + + build-mac: + needs: build + runs-on: macos-latest + + steps: + - uses: actions/checkout@v4 + + - name: Build Mac App + run: xcodebuild -project "ColorKraken for Mac/ColorKraken/ColorKraken.xcodeproj" -scheme ColorKraken -derivedDataPath ./build + + - name: Archive Mac App + run: | + cd ./build/Build/Products/Release + zip -r ColorKraken-Mac.zip ColorKraken.app + + - name: Upload Mac App artifact + uses: actions/upload-artifact@v4 + with: + name: MacApp + path: ./build/Build/Products/Release/ColorKraken-Mac.zip + + - name: Release Mac App + uses: softprops/action-gh-release@v1 + with: + fail_on_unmatched_files: false + generate_release_notes: true + files: ./build/Build/Products/Release/ColorKraken-Mac.zip \ No newline at end of file From 9c1e5a2e23c00a79811ffd4f5805d0b74ca9d9ed Mon Sep 17 00:00:00 2001 From: Bruce Date: Sun, 21 Jan 2024 23:11:32 -0800 Subject: [PATCH 2/2] fixing path --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4481e52..eee2137 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -57,7 +57,7 @@ jobs: - uses: actions/checkout@v4 - name: Build Mac App - run: xcodebuild -project "ColorKraken for Mac/ColorKraken/ColorKraken.xcodeproj" -scheme ColorKraken -derivedDataPath ./build + run: xcodebuild -project "ColorKraken for Mac/ColorKraken.xcodeproj" -scheme ColorKraken -derivedDataPath ./build - name: Archive Mac App run: |