LibAC-dart/Jenkinsfile

28 lines
706 B
Text
Raw Normal View History

2024-07-08 22:05:17 -07:00
pipeline {
2024-07-08 22:15:59 -07:00
agent {
label 'linux'
}
2024-07-08 22:05:17 -07:00
stages {
stage('Build') {
steps {
2024-07-08 22:11:58 -07:00
sh 'dart doc'
2024-07-08 22:05:17 -07:00
}
}
2024-07-08 22:11:58 -07:00
stage('Deploy') {
2024-07-08 22:05:17 -07:00
steps {
2024-07-08 23:36:46 -07:00
sh 'dart pub publish -f'
2024-07-08 22:11:58 -07:00
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'
2024-07-08 22:05:17 -07:00
}
}
}
2024-07-08 22:11:58 -07:00
}