TinyLifeWeb/Jenkinsfile

24 lines
No EOL
450 B
Groovy

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') {
when {
branch 'main'
}
steps {
sh 'cd docs; docfx.exe'
sh 'rm -rf /var/www/tinylifedocs/*'
sh 'cp docs/_site/** /var/www/tinylifedocs/ -r'
}
}
}
}