TinyLifeWeb/Jenkinsfile

24 lines
450 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/*'
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/*'
sh 'cp docs/_site/** /var/www/tinylifedocs/ -r'
2021-08-04 05:42:02 +02:00
}
}
}
}