From 53a58d56c55ef32a2d474635fd6356a43a585259 Mon Sep 17 00:00:00 2001 From: Yaohui Liu Date: Sat, 6 May 2023 20:07:53 +0800 Subject: [PATCH] ci: update release ci. --- .github/workflows/release.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 01ad2d657..c8801e7d9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -37,9 +37,9 @@ jobs: git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*"; git fetch origin; $LastTag = git describe --tags; - dropped_tag = ($LastTag).TrimStart('v'); - echo "Last tag is: $dropped_tag"; - $Version = ${dropped_tag%%-*} + "-preview"; + $DroppedTag = ($LastTag).TrimStart('v'); + echo "Last tag is: $DroppedTag"; + $Version = $(echo $string | cut -d'-' -f1) + "-preview"; echo "Publishing version: $Version"; dotnet pack ./src/TensorFlowNET.Core/Tensorflow.Binding.csproj -c Release -o packages /p:PackageVersion=$Version /p:Version=$Version; dotnet pack ./src/TensorFlowNET.Keras/Tensorflow.Keras.csproj -c Release -o packages /p:PackageVersion=$Version /p:Version=$Version;