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 {
|
2022-01-23 15:58:04 +01:00
|
|
|
sh '''cd web
|
|
|
|
bundle
|
|
|
|
bundle exec jekyll build'''
|
2021-12-01 10:52:57 +01:00
|
|
|
sh 'rm -rf /var/www/tinylifegame/*'
|
2022-01-23 15:58:04 +01:00
|
|
|
sh 'cp -r web/_site/. /var/www/tinylifegame/'
|
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/*'
|
2022-01-23 15:58:04 +01:00
|
|
|
sh 'cp -r docs/_site/. /var/www/tinylifedocs/'
|
2021-08-04 05:42:02 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|