File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ pipeline {
3333 NugetAPIKey = credentials(' nuget-api-key' )
3434 }
3535 steps {
36- bat ' docker run --rm -v %cd%:C:/work -w C:/work/src -e NugetAPIKey mcr.microsoft.com/dotnet/framework/sdk:4.8-20190910-windowsservercore-ltsc2019 powershell -File build.ps1 -Target Nuget-push'
36+ bat ' docker run --rm -v %cd%:C:/work -w C:/work/src -e NugetAPIKey -e TAG_NAME mcr.microsoft.com/dotnet/framework/sdk:4.8-20190910-windowsservercore-ltsc2019 powershell -File build.ps1 -Target Nuget-push'
3737 }
3838 }
3939 }
Original file line number Diff line number Diff line change @@ -41,8 +41,8 @@ Task("Nuget-pack")
4141 . IsDependentOn ( "Nuget-Restore" )
4242 . Does ( ( ) => {
4343 var version = "0.1.0" ;
44- if ( BuildSystem . AppVeyor . Environment . Repository . Tag . IsTag ) {
45- version = BuildSystem . AppVeyor . Environment . Repository . Tag . Name ;
44+ if ( HasEnvironmentVariable ( "TAG_NAME" ) ) {
45+ version = EnvironmentVariable ( "TAG_NAME" ) ;
4646 }
4747 var settings = new DotNetCorePackSettings
4848 {
@@ -58,7 +58,7 @@ Task("Nuget-pack")
5858Task ( "Nuget-push" )
5959. IsDependentOn ( "Nuget-pack" )
6060. Does ( ( ) => {
61- if ( ! BuildSystem . AppVeyor . Environment . Repository . Tag . IsTag ) {
61+ if ( ! HasEnvironmentVariable ( "TAG_NAME" ) ) {
6262 return ;
6363 }
6464 // Get the paths to the packages.
You can’t perform that action at this time.
0 commit comments