Skip to content

Commit d54ec69

Browse files
committed
ci(release): update artifact preparation to use copy-and-move pattern
1 parent fa31a83 commit d54ec69

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
- name: Upload artifact
5353
uses: actions/upload-artifact@v4
5454
with:
55-
name: ${{ matrix.artifact }}
55+
name: build-${{ matrix.target }}
5656
path: ${{ matrix.artifact }}
5757

5858
release:
@@ -63,20 +63,20 @@ jobs:
6363
steps:
6464
- name: Download artifacts
6565
uses: actions/download-artifact@v4
66+
with:
67+
path: artifacts
68+
merge-multiple: true
6669

6770
- name: Download PMHQ releases
6871
run: |
6972
PMHQ_RELEASE=$(curl -s https://api.github.com/repos/linyuchen/PMHQ.Rust/releases/latest)
7073
echo "$PMHQ_RELEASE" | jq -r '.assets[] | select(.name | endswith(".zip")) | .browser_download_url' | while read url; do
71-
echo "Downloading: $url"
7274
curl -L -O "$url"
7375
done
7476
7577
- name: Prepare files
7678
run: |
77-
mv llbot-win-x64.exe/llbot-win-x64.exe .
78-
mv llbot-linux-x64/llbot-linux-x64 .
79-
mv llbot-linux-arm64/llbot-linux-arm64 .
79+
mv artifacts/* .
8080
chmod +x llbot-linux-x64 llbot-linux-arm64
8181
8282
- name: Create Release Draft

0 commit comments

Comments
 (0)