mirror of
https://github.com/Ellpeck/TinyLifeWeb.git
synced 2024-11-22 11:23:29 +01:00
24 lines
No EOL
450 B
Groovy
24 lines
No EOL
450 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'
|
|
}
|
|
}
|
|
}
|
|
} |