LibAC-dart/Jenkinsfile
2024-07-08 23:36:46 -07:00

27 lines
706 B
Groovy

pipeline {
agent {
label 'linux'
}
stages {
stage('Build') {
steps {
sh 'dart doc'
}
}
stage('Deploy') {
steps {
sh 'dart pub publish -f'
sh 'git clone git@github.com:ariascreations/ServerCode'
sh 'rsync -a --progress -h --delete doc/api/ ServerCode/api.zontreck.com/dartdocs/libac/'
dir('ServerCode') {
sh 'git add --all .'
sh 'git commit -m "[BOT] Publish LibAC DartDocs"'
sh 'git push --all'
}
sh 'rm -rf ServerCode'
}
}
}
}