2021-08-04 05:42:02 +02:00
|
|
|
pipeline {
|
|
|
|
agent any
|
|
|
|
stages {
|
2021-12-01 10:52:57 +01:00
|
|
|
stage('Site') {
|
|
|
|
when {
|
|
|
|
branch 'main'
|
|
|
|
}
|
|
|
|
steps {
|
|
|
|
sh 'rm -rf /var/www/tinylifegame/*'
|
2021-12-01 12:12:43 +01:00
|
|
|
sh 'cp web/. /var/www/tinylifegame/ -r'
|
2021-12-01 10:52:57 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Docs') {
|
2021-08-04 05:42:02 +02:00
|
|
|
when {
|
2021-08-04 05:44:15 +02:00
|
|
|
branch 'main'
|
2021-08-04 05:42:02 +02:00
|
|
|
}
|
|
|
|
steps {
|
2021-12-01 10:52:57 +01:00
|
|
|
sh 'cd docs; docfx.exe'
|
2021-11-26 19:42:45 +01:00
|
|
|
sh 'rm -rf /var/www/tinylifedocs/*'
|
2021-12-01 12:12:43 +01:00
|
|
|
sh 'cp docs/_site/. /var/www/tinylifedocs/ -r'
|
2021-08-04 05:42:02 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|