Browse Source

ci: fix error.

tags/v0.6.0
Yaohui Liu 2 years ago
parent
commit
f62e1dde96
No known key found for this signature in database GPG Key ID: E86D01E1809BD23E
1 changed files with 10 additions and 9 deletions
  1. +10
    -9
      .github/prepare_release.sh

+ 10
- 9
.github/prepare_release.sh View File

@@ -17,17 +17,18 @@ else
echo "At least one of minor version and patch version should be specified."
fi

# preparation before packing backends
mkdir ./temp
mkdir ./temp/runtimes
cp ./LLama/runtimes/*.* ./temp/runtimes/
cp ./LLama/runtimes/build/*/* ./temp/
cur=$(pwd);
echo "Current directory: $cur";
mkdir ./temp;
mkdir ./temp/runtimes;
cp ./LLama/runtimes/*.* ./temp/runtimes/;
cp ./LLama/runtimes/build/*/* ./temp/;

# get the current version
cd temp
dotnet add package LLamaSharp
version=$(dotnet list temp.csproj package | grep LLamaSharp)
regex="[0-9]+\.[0-9]+\.[0-9]+$"
cd temp;
dotnet add package LLamaSharp;
version=$(dotnet list temp.csproj package | grep LLamaSharp);
regex="[0-9]+\.[0-9]+\.[0-9]+$";
if [[ $version =~ $regex ]]; then
version="${BASH_REMATCH[0]}"
echo "Extracted version: $version"


Loading…
Cancel
Save