mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-11-22 04:53:29 +01:00
ensure docs are published on a web agent
This commit is contained in:
parent
5f02e701d9
commit
1b2cbb6afd
1 changed files with 5 additions and 0 deletions
5
Jenkinsfile
vendored
5
Jenkinsfile
vendored
|
@ -16,13 +16,18 @@ pipeline {
|
|||
stage('Document') {
|
||||
steps {
|
||||
sh 'dotnet cake --target Document --branch ' + env.BRANCH_NAME
|
||||
stash includes: 'Docs/_site/**', name: 'site'
|
||||
}
|
||||
}
|
||||
stage('Publish Docs') {
|
||||
agent {
|
||||
label 'web'
|
||||
}
|
||||
when {
|
||||
branch 'release'
|
||||
}
|
||||
steps {
|
||||
unstash 'site'
|
||||
sh 'rm -rf /var/www/MLEM/*'
|
||||
sh 'cp Docs/_site/** /var/www/MLEM/ -r'
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue