fixes declarative when for nuget push
piwigodotnet/pipeline/head This commit looks good
Details
piwigodotnet/pipeline/head This commit looks good
Details
This commit is contained in:
parent
f68355a966
commit
bd812eceee
|
@ -40,12 +40,11 @@ pipeline {
|
|||
}
|
||||
}
|
||||
|
||||
// we only publish packages for the main branch
|
||||
if (env.BRANCH_NAME == 'main') {
|
||||
stage('nuget publish') {
|
||||
steps {
|
||||
sh "dotnet nuget push --source gitea ${env.WORKSPACE}/publish/*.nupkg"
|
||||
}
|
||||
stage('nuget publish') {
|
||||
// we only publish packages for the main branch
|
||||
when { branch 'main' }
|
||||
steps {
|
||||
sh "dotnet nuget push --source gitea ${env.WORKSPACE}/publish/*.nupkg"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue