We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57c7656 commit 164588aCopy full SHA for 164588a
.github/workflows/release.yml
@@ -30,7 +30,7 @@ jobs:
30
uses: actions/upload-artifact@v4
31
with:
32
name: ${{ matrix.artifact_name }}
33
- path: dist/gpt_cmd
+ path: 'dist/gpt_cmd*'
34
35
release:
36
runs-on: ubuntu-latest
@@ -42,8 +42,16 @@ jobs:
42
- name: Rename artifacts
43
run: |
44
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}"
+ ext=""
+ 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"
55
rm -rf "${os}/"
56
done
57
- name: Create release
0 commit comments