Skip to content

Commit 5cf27d7

Browse files
committed
fix(ci): correct artifact paths in release publish step
upload-artifact@v4 strips the common path prefix, so files aren't at src-tauri/target/<arch>/... inside the artifact. Remove merge-multiple to keep per-architecture subdirectories and update all paths accordingly. Add debug step to log artifact structure.
1 parent acb9329 commit 5cf27d7

1 file changed

Lines changed: 13 additions & 11 deletions

File tree

.github/workflows/release.yaml

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -84,20 +84,22 @@ jobs:
8484
uses: actions/download-artifact@v4
8585
with:
8686
path: artifacts
87-
merge-multiple: true
87+
88+
- name: Debug artifact structure
89+
run: find artifacts -type f | head -30
8890

8991
- name: Generate latest.json
9092
run: |
9193
VERSION="${GITHUB_REF_NAME#v}"
9294
DATE=$(date -u +"%Y-%m-%dT%H:%M:%SZ")
9395
9496
# Read signature files
95-
AARCH64_SIG=$(cat artifacts/src-tauri/target/aarch64-apple-darwin/release/bundle/macos/*.app.tar.gz.sig)
96-
X86_64_SIG=$(cat artifacts/src-tauri/target/x86_64-apple-darwin/release/bundle/macos/*.app.tar.gz.sig)
97+
AARCH64_SIG=$(cat artifacts/artifacts-aarch64-apple-darwin/macos/*.app.tar.gz.sig)
98+
X86_64_SIG=$(cat artifacts/artifacts-x86_64-apple-darwin/macos/*.app.tar.gz.sig)
9799
98100
# Get filenames
99-
AARCH64_TAR=$(basename artifacts/src-tauri/target/aarch64-apple-darwin/release/bundle/macos/*.app.tar.gz)
100-
X86_64_TAR=$(basename artifacts/src-tauri/target/x86_64-apple-darwin/release/bundle/macos/*.app.tar.gz)
101+
AARCH64_TAR=$(basename artifacts/artifacts-aarch64-apple-darwin/macos/*.app.tar.gz)
102+
X86_64_TAR=$(basename artifacts/artifacts-x86_64-apple-darwin/macos/*.app.tar.gz)
101103
102104
cat > latest.json << EOF
103105
{
@@ -122,10 +124,10 @@ jobs:
122124
draft: false
123125
generate_release_notes: true
124126
files: |
125-
artifacts/src-tauri/target/aarch64-apple-darwin/release/bundle/dmg/*.dmg
126-
artifacts/src-tauri/target/x86_64-apple-darwin/release/bundle/dmg/*.dmg
127-
artifacts/src-tauri/target/aarch64-apple-darwin/release/bundle/macos/*.app.tar.gz
128-
artifacts/src-tauri/target/aarch64-apple-darwin/release/bundle/macos/*.app.tar.gz.sig
129-
artifacts/src-tauri/target/x86_64-apple-darwin/release/bundle/macos/*.app.tar.gz
130-
artifacts/src-tauri/target/x86_64-apple-darwin/release/bundle/macos/*.app.tar.gz.sig
127+
artifacts/artifacts-aarch64-apple-darwin/dmg/*.dmg
128+
artifacts/artifacts-x86_64-apple-darwin/dmg/*.dmg
129+
artifacts/artifacts-aarch64-apple-darwin/macos/*.app.tar.gz
130+
artifacts/artifacts-aarch64-apple-darwin/macos/*.app.tar.gz.sig
131+
artifacts/artifacts-x86_64-apple-darwin/macos/*.app.tar.gz
132+
artifacts/artifacts-x86_64-apple-darwin/macos/*.app.tar.gz.sig
131133
latest.json

0 commit comments

Comments
 (0)