File tree Expand file tree Collapse file tree 1 file changed +4
-16
lines changed
Expand file tree Collapse file tree 1 file changed +4
-16
lines changed Original file line number Diff line number Diff line change @@ -42,27 +42,15 @@ jobs:
4242 uses : actions/download-artifact@v4
4343 - name : Rename artifacts
4444 run : |
45- echo "ls"
46- ls
47-
48- echo "ls windows"
49- ls windows
50-
51- echo "ls linux"
52- ls linux
53-
54- echo "ls windows/dist"
55- ls windows/dist
56-
57- exit 1
45+ mkdir -p bin
5846 for os in windows linux macos; do
5947 ext=""
6048 if [ "$os" = "windows" ]; then
6149 ext=".exe"
6250 fi
6351
64- src="${os}/dist/ gpt_cmd${ext}"
65- dest="gpt_cmd-${os}${ext}"
52+ src="${os}/gpt_cmd${ext}"
53+ dest="bin/ gpt_cmd-${{ github.ref }} -${os}${ext}"
6654
6755 echo "Moving $src to $dest"
6856 mv "$src" "$dest"
7159 - name : Create release
7260 uses : ncipollo/release-action@v1.14.0
7361 with :
74- artifacts : gpt_cmd-linux,gpt_cmd-macos,gpt_cmd-windows
62+ artifacts : ' bin/ gpt_cmd* '
7563 tag : ${{ github.ref }}
7664 name : ${{ github.ref }}
You can’t perform that action at this time.
0 commit comments