TinyLifeWeb/Jenkinsfile

27 lines
538 B
Text
Raw Normal View History

2021-08-04 05:42:02 +02:00
pipeline {
agent any
stages {
stage('Site') {
when {
branch 'main'
}
steps {
2022-01-23 15:58:04 +01:00
sh '''cd web
bundle
bundle exec jekyll build'''
sh 'rm -rf /var/www/tinylifegame/*'
2022-01-23 15:58:04 +01:00
sh 'cp -r web/_site/. /var/www/tinylifegame/'
}
}
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 {
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
}
}
}
}