diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4912c6c42..07525ed99 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -305,7 +305,13 @@ jobs: cd bundle ln -s /Applications Applications cd .. - hdiutil create -volname "ImHex" -srcfolder bundle -ov -format UDZO imhex-${{ env.IMHEX_VERSION }}-macOS${{ matrix.suffix }}-x86_64.dmg + for i in $(seq 1 10); do + if hdiutil create -volname "ImHex" -srcfolder bundle -ov -format UDZO imhex-${{ env.IMHEX_VERSION }}-macOS${{ matrix.suffix }}-x86_64.dmg; then + echo "Created dmg after ${i} attempts" + break + fi + sleep 10 + done - name: ⬆️ Upload DMG uses: actions/upload-artifact@v4