Skip to content

Commit 53a58d5

Browse files
committed
ci: update release ci.
1 parent a446add commit 53a58d5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ jobs:
3737
git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*";
3838
git fetch origin;
3939
$LastTag = git describe --tags;
40-
dropped_tag = ($LastTag).TrimStart('v');
41-
echo "Last tag is: $dropped_tag";
42-
$Version = ${dropped_tag%%-*} + "-preview";
40+
$DroppedTag = ($LastTag).TrimStart('v');
41+
echo "Last tag is: $DroppedTag";
42+
$Version = $(echo $string | cut -d'-' -f1) + "-preview";
4343
echo "Publishing version: $Version";
4444
dotnet pack ./src/TensorFlowNET.Core/Tensorflow.Binding.csproj -c Release -o packages /p:PackageVersion=$Version /p:Version=$Version;
4545
dotnet pack ./src/TensorFlowNET.Keras/Tensorflow.Keras.csproj -c Release -o packages /p:PackageVersion=$Version /p:Version=$Version;

0 commit comments

Comments
 (0)