Adds artifact to generate

This commit is contained in:
zontreck 2024-07-08 23:52:41 -07:00
parent 23b1f20751
commit 16c9ba0769

12
Jenkinsfile vendored
View file

@ -14,21 +14,17 @@ pipeline {
stage('Build') {
steps {
sh 'dart doc'
sh 'tar -cvf docs.tgz doc/api/*'
}
}
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'
}
}
}
archiveArtifacts {
artifacts: 'docs.tgz'
}
}