From 72b6ec25348b7cea4f1799d844eed025ad4c1d85 Mon Sep 17 00:00:00 2001 From: Marin Visscher Date: Thu, 18 Jul 2024 15:46:12 +0200 Subject: [PATCH] Added MacOS build to release --- .github/workflows/release.yml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7f54e66..91d9bb8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -33,7 +33,7 @@ jobs: defaults: run: shell: bash -l {0} - runs-on: macos-latest + runs-on: macos-13 steps: - name: Checkout repository uses: actions/checkout@v4 @@ -43,14 +43,14 @@ jobs: environment-name: build environment-file: .github/environments/build-macos.yml - name: Build executable - run: pyinstaller macos.spec + run: pyinstaller macos.spec -y - name: Rename .app package run: | brew install create-dmg mv "dist/Activity Browser" "dist/Activity Browser.app" create-dmg \ --volname "Activity Browser Installer" \ - --volicon "ab_launcher\assets\activity-browser.icns" \ + --volicon "ab_launcher/assets/activity-browser.icns" \ --window-pos 200 120 \ --window-size 800 400 \ --icon-size 100 \ @@ -65,7 +65,7 @@ jobs: name: macos-installer path: Activity_Browser_Install_Mac_x64.dmg release: - needs: build_windows + needs: [build_windows, build_macos] runs-on: ubuntu-latest permissions: contents: write @@ -79,10 +79,14 @@ jobs: with: name: windows-installer path: windows-installer + - name: Fetch MacOS build + uses: actions/download-artifact@master + with: + name: macos-installer + path: macos-installer - name: Create github release uses: ncipollo/release-action@v1 with: - body: Release test draft: true token: ${{ secrets.GITHUB_TOKEN }} - artifacts: windows-installer/Activity_Browser_Install_Win_x64.exe \ No newline at end of file + artifacts: "windows-installer/Activity_Browser_Install_Win_x64.exe, macos-installer/Activity_Browser_Install_Mac_x64.dmg" \ No newline at end of file