Skip to content

Commit

Permalink
ci: Fix an error occurred when the dist-github-release.sh script is e…
Browse files Browse the repository at this point in the history
…xecuted
  • Loading branch information
s2quake authored and OnedgeLee committed Jul 2, 2024
1 parent f940502 commit f9eeb83
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/bin/dist-github-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ elif [ ! -f obj/release_note.txt ]; then
fi

for project in "${projects[@]}"; do
nupkg_path="./$project/bin/$configuration/$project.$tag.nupkg"
name=$(echo $project | sed -E 's/^.+\///')
nupkg_path="./$project/bin/$configuration/$name.$tag.nupkg"
if [ ! -f "$nupkg_path" ]; then
{
echo "$nupkg_path is missing."
Expand Down Expand Up @@ -73,7 +74,8 @@ while ! "$(dirname "$0")/github-release.sh" info \
done

for project in "${projects[@]}"; do
nupkg_path="./$project/bin/$configuration/$project.$tag.nupkg"
name=$(echo $project | sed -E 's/^.+\///')
nupkg_path="./$project/bin/$configuration/$name.$tag.nupkg"
"$(dirname "$0")/github-release.sh" upload \
--user "$github_user" \
--repo "$github_repo" \
Expand Down

0 comments on commit f9eeb83

Please sign in to comment.