-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpublish-nuget-dev.bat
More file actions
17 lines (16 loc) · 869 Bytes
/
Copy pathpublish-nuget-dev.bat
File metadata and controls
17 lines (16 loc) · 869 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
@echo off
cls
echo --------------------------------------------------------------------------------------
echo publish-nuget
echo --------------------------------------------------------------------------------------
echo tag the version and publish the corresponding nuget from version to github and nuget
echo parameter: version tag
echo example: publish-nuget 1.0.15
echo nugetkey=%nugetkey%
echo githubkey=%githubkey%
echo version=%1
echo --------------------------------------------------------------------------------------
git tag -a v%1 -m v%1
git push origin v%1
nuget push CommandLine.NetCore/bin/Debug/CommandLine.NetCore.%1.nupkg %nugetkey% -SkipDuplicate -Source https://api.nuget.org/v3/index.json -Verbosity detailed
dotnet nuget push "CommandLine.NetCore/bin/Debug/CommandLine.NetCore.%1.nupkg" --skip-duplicate --api-key %githubkey% --source "github"