Skip to content

Commit

Permalink
ci(release): update release workflow to handle windows files with .ex…
Browse files Browse the repository at this point in the history
…e extension
  • Loading branch information
AlbinoGeek committed Jun 22, 2024
1 parent 48c0e0c commit adbfc36
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,12 @@ jobs:
echo "Tag name is $tagname"
echo "Uploading release assets..."
ls -lR build/*
files=$(for f in build/*; do echo -n " $f\#"; echo -n $f | sed -e s/build\\/// -e s/latest-// ; done)
files=$(for f in build/*; do
outfile=$(echo $f | sed -e s/build\\/// -e s/latest-//)
echo -n " $f/app#$outfile"
if [[ "$f" == *windows* ]]; then
echo -n ".exe"
fi
done)
echo "Files are $files"
gh release create "$tagname" -t "$tagname" $files

0 comments on commit adbfc36

Please sign in to comment.