TinyLifeWeb/Jenkinsfile

24 lines
448 B
Text
Raw Normal View History

2021-08-04 05:42:02 +02:00
pipeline {
agent any
stages {
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'
}
}
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/*'
2021-12-01 12:12:43 +01:00
sh 'cp docs/_site/. /var/www/tinylifedocs/ -r'
2021-08-04 05:42:02 +02:00
}
}
}
}