GamesWebsite/Jenkinsfile

17 lines
343 B
Text
Raw Normal View History

2021-07-07 15:05:57 +02:00
pipeline {
agent any
stages {
stage('Build') {
when {
branch 'main'
}
steps {
sh '''cd src
npm install
2021-07-07 15:13:36 +02:00
npx presskit build --output ../out --pretty-links --collapse-menu'''
2021-07-07 15:15:39 +02:00
sh '''rm -rf /var/www/press/*
2021-07-07 15:18:02 +02:00
cp -r out/. /var/www/press'''
2021-07-07 15:05:57 +02:00
}
}
}
}