From 332797f3effcebc58a09e65e687782b035fc51a5 Mon Sep 17 00:00:00 2001 From: Zoltan Csizmadia Date: Wed, 7 Sep 2022 19:18:38 -0500 Subject: [PATCH] Remove only leading v from version --- .github/workflows/dotnet.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 428cc95..c036c8e 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -47,7 +47,7 @@ jobs: run: | vertag=(${GITHUB_REF//\// }) VERSION="${vertag[2]}" - VERSION="${VERSION//v}" + [[ "${VERSION:0:1}" == "v" ]] && VERSION="${VERSION:1}" dotnet pack -c Release --include-symbols --include-source -p:PackageVersion=$VERSION -o nupkg - name: Push to NuGet.org run: dotnet nuget push ./nupkg/*.nupkg --source https://api.nuget.org/v3/index.json --skip-duplicate --api-key ${{secrets.NUGET_API_KEY}}