Skip to content

Commit 164588a

Browse files
committed
[workflows/release] Fix artifact path for windows
1 parent 57c7656 commit 164588a

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

.github/workflows/release.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
uses: actions/upload-artifact@v4
3131
with:
3232
name: ${{ matrix.artifact_name }}
33-
path: dist/gpt_cmd
33+
path: 'dist/gpt_cmd*'
3434

3535
release:
3636
runs-on: ubuntu-latest
@@ -42,8 +42,16 @@ jobs:
4242
- name: Rename artifacts
4343
run: |
4444
for os in windows linux macos; do
45-
echo "Moving ${os}/dist/gpt_cmd to gpt_cmd-${os}"
46-
mv "${os}/dist/gpt_cmd" "gpt_cmd-${os}"
45+
ext=""
46+
if [ "$os" = "windows" ]; then
47+
ext=".exe"
48+
fi
49+
50+
src="${os}/dist/gpt_cmd${ext}"
51+
dest="gpt_cmd-${os}${ext}"
52+
53+
echo "Moving $src to $dest"
54+
mv "$src" "$dest"
4755
rm -rf "${os}/"
4856
done
4957
- name: Create release

0 commit comments

Comments
 (0)