From 8e4dcfe21efc3d972ec791e2af7d6f824960924a Mon Sep 17 00:00:00 2001 From: David Jeong Date: Sun, 27 Oct 2024 12:04:31 +0900 Subject: [PATCH] Update release workflow to handle .dmg file renaming --- .github/workflows/release.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e366e8d..e80a5e4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -69,11 +69,14 @@ jobs: - name: Build application run: npm run tauri build -- universal-apple-darwin + - name: Move dmg file + run: mv src-tauri/target/release/bundle/dmg/*.dmg colima-gui-macos-${{ github.ref }}.dmg + - name: Upload artifact uses: actions/upload-artifact@v4 with: name: colima-gui-macos - path: src-tauri/target/release/bundle/dmg/*.dmg + path: colima-gui-${{ github.ref_name }}.dmg if-no-files-found: error release: @@ -105,6 +108,6 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: src-tauri/target/release/bundle/dmg/*.dmg + asset_path: colima-gui-macos-${{ github.ref }}.dmg asset_name: colima-gui-macos-${{ github.ref }}.dmg asset_content_type: application/x-apple-diskimage