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