Skip to content

Commit 352f3b0

Browse files
timiclaude
authored andcommitted
fix: fix DMG path issue in upload step
The DMG was being renamed but the upload step couldn't find it. Use full path in the upload step. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 3d49a24 commit 352f3b0

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

.github/workflows/build.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -305,25 +305,23 @@ jobs:
305305
DMG_PATH=$(ls ./lumis/apps/web/src-tauri/target/release/bundle/dmg/Lumis*.dmg)
306306
xcrun stapler validate "$DMG_PATH"
307307
308-
- name: Find DMG file
308+
- name: Find and rename DMG file
309309
id: dmg
310-
working-directory: ./lumis/apps/web/src-tauri/target/release/bundle/dmg
311-
run: echo "path=$(ls Lumis*.dmg)" >> $GITHUB_OUTPUT
312-
313-
- name: Rename DMG with platform
314310
working-directory: ./lumis/apps/web/src-tauri/target/release/bundle/dmg
315311
run: |
312+
# Get original filename
316313
ORIGINAL=$(ls Lumis*.dmg)
317314
# Extract version and arch, add macOS platform
318315
NEW=$(echo "$ORIGINAL" | sed 's/Lumis_\(.*\)_aarch64\.dmg/Lumis_\1_macOS_aarch64.dmg/')
319316
mv "$ORIGINAL" "$NEW"
320317
echo "path=$NEW" >> $GITHUB_OUTPUT
318+
echo "full_path=$(pwd)/$NEW" >> $GITHUB_OUTPUT
321319
322320
- name: Upload Apple Silicon DMG
323321
uses: actions/upload-artifact@v4
324322
with:
325323
name: lumis-dmg-arm64
326-
path: ./lumis/apps/web/src-tauri/target/release/bundle/dmg/${{ steps.dmg.outputs.path }}
324+
path: ${{ steps.dmg.outputs.full_path }}
327325

328326
build-tauri-linux:
329327
needs: get-version

0 commit comments

Comments
 (0)