Skip to content

Commit

Permalink
Update release workflow to handle .dmg file renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
DrumRobot committed Oct 27, 2024
1 parent e220849 commit 8e4dcfe
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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

0 comments on commit 8e4dcfe

Please sign in to comment.