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

This commit is contained in:
Philipp Häfelfinger 2022-11-03 15:32:42 +01:00
parent 4684829f81
commit f68355a966

3
Jenkinsfile vendored
View File

@ -40,11 +40,14 @@ pipeline {
} }
} }
// we only publish packages for the main branch
if (env.BRANCH_NAME == 'main') {
stage('nuget publish') { stage('nuget publish') {
steps { steps {
sh "dotnet nuget push --source gitea ${env.WORKSPACE}/publish/*.nupkg" sh "dotnet nuget push --source gitea ${env.WORKSPACE}/publish/*.nupkg"
} }
} }
}
} }