mirror of
https://github.com/Ellpeck/TinyLifeWeb.git
synced 2024-11-22 19:28:35 +01:00
29 lines
601 B
Groovy
29 lines
601 B
Groovy
pipeline {
|
|
agent { label 'web' }
|
|
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
|
|
dotnet tool restore
|
|
dotnet docfx'''
|
|
sh 'rm -rf /var/www/tinylifedocs/*'
|
|
sh 'cp -r docs/_site/. /var/www/tinylifedocs/'
|
|
}
|
|
}
|
|
}
|
|
}
|