Skip to content

Commit

Permalink
Remove only leading v from version
Browse files Browse the repository at this point in the history
  • Loading branch information
Zoltan Csizmadia authored and Zoltan Csizmadia committed Sep 8, 2022
1 parent 9960267 commit 332797f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}}

0 comments on commit 332797f

Please sign in to comment.