only publish packages on main branch
piwigodotnet/pipeline/head There was a failure building this commit Details

This commit is contained in:
Philipp Häfelfinger 2022-11-03 15:32:42 +01:00
parent 4684829f81
commit f68355a966
1 changed files with 6 additions and 3 deletions

9
Jenkinsfile vendored
View File

@ -40,9 +40,12 @@ pipeline {
}
}
stage('nuget publish') {
steps {
sh "dotnet nuget push --source gitea ${env.WORKSPACE}/publish/*.nupkg"
// 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"
}
}
}