mirror of
https://github.com/Ellpeck/TinyLifeWeb.git
synced 2024-12-22 22:59:23 +01:00
27 lines
No EOL
538 B
Groovy
27 lines
No EOL
538 B
Groovy
pipeline {
|
|
agent any
|
|
stages {
|
|
stage('Site') {
|
|
when {
|
|
branch 'main'
|
|
}
|
|
steps {
|
|
sh '''cd web
|
|
bundle
|
|
bundle exec jekyll build'''
|
|
sh 'rm -rf /var/www/tinylifegame/*'
|
|
sh 'cp -r web/_site/. /var/www/tinylifegame/'
|
|
}
|
|
}
|
|
stage('Docs') {
|
|
when {
|
|
branch 'main'
|
|
}
|
|
steps {
|
|
sh 'cd docs; docfx.exe'
|
|
sh 'rm -rf /var/www/tinylifedocs/*'
|
|
sh 'cp -r docs/_site/. /var/www/tinylifedocs/'
|
|
}
|
|
}
|
|
}
|
|
} |