19 lines
387 B
Groovy
19 lines
387 B
Groovy
pipeline {
|
|
agent any
|
|
tools {
|
|
dotnetsdk
|
|
}
|
|
stages {
|
|
stage('Build') {
|
|
steps {
|
|
echo 'Building..'
|
|
sh 'dotnet pack --configuration Release --output ./'
|
|
}
|
|
}
|
|
stage('Deploy') {
|
|
steps {
|
|
sh 'dotnet nuget push ./*.nupkg --source gitea'
|
|
}
|
|
}
|
|
}
|
|
} |