From 9b04535f243bed09103062ca89a9ac03476be811 Mon Sep 17 00:00:00 2001 From: Djuri Baars Date: Mon, 10 Jun 2024 00:14:50 +0200 Subject: [PATCH] Add zip --- .github/workflows/build_macos.yaml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build_macos.yaml b/.github/workflows/build_macos.yaml index 3de7e1e..36eae18 100644 --- a/.github/workflows/build_macos.yaml +++ b/.github/workflows/build_macos.yaml @@ -37,23 +37,29 @@ jobs: - name: Get current block id: getBlockHeight run: echo "blockHeight=$(curl -s https://mempool.space/api/blocks/tip/height)" >> $GITHUB_OUTPUT + - name: Zip the app bundle + run: | + cd dist + zip -r BTClockOTA-macos-universal2.zip BTClockOTA.app - name: Create DMG run: | mkdir dmg_temp cp -R dist/BTClockOTA.app dmg_temp/ # Create the DMG file - hdiutil create -volname "BTClockOTA" -srcfolder dmg_temp -ov -format UDZO "dist/BTClockOTA.dmg" + hdiutil create -volname "BTClockOTA" -srcfolder dmg_temp -ov -format UDZO "dist/BTClockOTA-universal.dmg" - name: Archive artifacts uses: actions/upload-artifact@v4 with: name: macos-artifacts - path: dist/BTClockOTA.dmg + path: | + dist/* + !dist/BTClockOTA.app - name: Create release uses: ncipollo/release-action@v1 with: tag: ${{ steps.getBlockHeight.outputs.blockHeight }} commit: main name: release-${{ steps.getBlockHeight.outputs.blockHeight }} - artifacts: "dist/*.dmg" + artifacts: "dist/*.dmg,dist/*.zip" allowUpdates: true makeLatest: true