LibAC-dart/Jenkinsfile
2024-07-08 23:56:05 -07:00

32 lines
578 B
Groovy

pipeline {
agent {
label 'linux'
}
options {
buildDiscarder(
logRotator(
numToKeepStr: '5'
)
)
}
stages {
stage('Build') {
steps {
sh 'dart doc'
sh 'tar -cvf docs.tgz doc/api/*'
}
}
stage('Deploy') {
steps {
sh 'dart pub publish -f'
}
}
}
post {
always {
archiveArtifacts artifacts: 'docs.tgz', onlyIfSuccessful: true
}
}
}