mirror of
https://github.com/Ellpeck/TinyLifeWeb.git
synced 2024-11-10 14:29:09 +01:00
24 lines
No EOL
448 B
Groovy
24 lines
No EOL
448 B
Groovy
pipeline {
|
|
agent any
|
|
stages {
|
|
stage('Site') {
|
|
when {
|
|
branch 'main'
|
|
}
|
|
steps {
|
|
sh 'rm -rf /var/www/tinylifegame/*'
|
|
sh 'cp web/. /var/www/tinylifegame/ -r'
|
|
}
|
|
}
|
|
stage('Docs') {
|
|
when {
|
|
branch 'main'
|
|
}
|
|
steps {
|
|
sh 'cd docs; docfx.exe'
|
|
sh 'rm -rf /var/www/tinylifedocs/*'
|
|
sh 'cp docs/_site/. /var/www/tinylifedocs/ -r'
|
|
}
|
|
}
|
|
}
|
|
} |