TinyLifeWeb/Jenkinsfile

30 lines
589 B
Text
Raw Permalink Normal View History

2021-08-04 05:42:02 +02:00
pipeline {
agent any
stages {
stage('Site') {
when {
branch 'main'
}
steps {
2022-01-23 15:58:04 +01:00
sh '''cd web
bundle
bundle exec jekyll build'''
sh 'rm -rf /var/www/tinylifegame/*'
2022-01-23 15:58:04 +01:00
sh 'cp -r web/_site/. /var/www/tinylifegame/'
}
}
stage('Docs') {
2021-08-04 05:42:02 +02:00
when {
2023-02-09 22:25:41 +01:00
branch 'main'
2021-08-04 05:42:02 +02:00
}
steps {
2023-02-09 22:32:05 +01:00
sh '''cd docs
dotnet tool restore
dotnet docfx'''
2021-11-26 19:42:45 +01:00
sh 'rm -rf /var/www/tinylifedocs/*'
2023-02-09 22:25:41 +01:00
sh 'cp -r docs/_site/. /var/www/tinylifedocs/'
2021-08-04 05:42:02 +02:00
}
}
}
2023-02-09 22:25:41 +01:00
}