only publish packages on main branch
Some checks failed
piwigodotnet/pipeline/head There was a failure building this commit
Some checks failed
piwigodotnet/pipeline/head There was a failure building this commit
This commit is contained in:
parent
4684829f81
commit
f68355a966
3
Jenkinsfile
vendored
3
Jenkinsfile
vendored
@ -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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user