From a446add3e0fd8bcd9ea175eb11fb716b9a782f20 Mon Sep 17 00:00:00 2001 From: Yaohui Liu Date: Sat, 6 May 2023 19:13:39 +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 93521b5cb..01ad2d657 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; - $LastTag = ($LastTag).TrimStart('v'); - echo "Last tag is: $LastTag"; - $Version = ${LastTag%%-*} + "-preview"; + dropped_tag = ($LastTag).TrimStart('v'); + echo "Last tag is: $dropped_tag"; + $Version = ${dropped_tag%%-*} + "-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;