Skip to content

Commit

Permalink
[workflows/release] Fix artifact path for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdothtml committed May 30, 2024
1 parent 57c7656 commit 164588a
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.artifact_name }}
path: dist/gpt_cmd
path: 'dist/gpt_cmd*'

release:
runs-on: ubuntu-latest
Expand All @@ -42,8 +42,16 @@ jobs:
- name: Rename artifacts
run: |
for os in windows linux macos; do
echo "Moving ${os}/dist/gpt_cmd to gpt_cmd-${os}"
mv "${os}/dist/gpt_cmd" "gpt_cmd-${os}"
ext=""
if [ "$os" = "windows" ]; then
ext=".exe"
fi
src="${os}/dist/gpt_cmd${ext}"
dest="gpt_cmd-${os}${ext}"
echo "Moving $src to $dest"
mv "$src" "$dest"
rm -rf "${os}/"
done
- name: Create release
Expand Down

0 comments on commit 164588a

Please sign in to comment.