Skip to content

Commit 7c4f2c7

Browse files
committed
ci: Fix artifact sig globs in release workflow.
1 parent d38afef commit 7c4f2c7

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -281,9 +281,12 @@ jobs:
281281
PUB_DATE=$(date -u +"%Y-%m-%dT%H:%M:%SZ")
282282
283283
# Read Ed25519 .sig files generated by Tauri during build.
284-
APPIMAGE_SIG=$(cat dist/linux/appimage/*.AppImage.sig 2>/dev/null || echo "")
285-
DMG_SIG=$(cat dist/macos/*.dmg.sig 2>/dev/null || echo "")
286-
NSIS_SIG=$(cat dist/windows/nsis/*-setup.exe.sig 2>/dev/null || echo "")
284+
# Use find to avoid path assumptions — upload-artifact@v4 preserves
285+
# the full workspace-relative path inside the artifact, so the files
286+
# land at an unpredictable depth under the dist/ subdirectory.
287+
APPIMAGE_SIG=$(find dist/linux -name "*.AppImage.sig" | head -1 | xargs cat 2>/dev/null || echo "")
288+
DMG_SIG=$(find dist/macos -name "*.dmg.sig" | head -1 | xargs cat 2>/dev/null || echo "")
289+
NSIS_SIG=$(find dist/windows -name "*-setup.exe.sig" | head -1 | xargs cat 2>/dev/null || echo "")
287290
288291
jq -n \
289292
--arg version "$VERSION" \

0 commit comments

Comments
 (0)