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