LibAC-dart/Jenkinsfile
2024-07-08 22:05:17 -07:00

29 lines
No EOL
717 B
Groovy

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