Adds artifact to generate
This commit is contained in:
parent
23b1f20751
commit
16c9ba0769
1 changed files with 4 additions and 8 deletions
12
Jenkinsfile
vendored
12
Jenkinsfile
vendored
|
@ -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'
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue