GamesWebsite/Jenkinsfile

22 lines
450 B
Groovy

pipeline {
agent any
stages {
stage('Build') {
steps {
sh '''cd src
npm install
npx presskit build --output ../out --pretty-links --collapse-menu --clean-build-folder
cp .htaccess ../out'''
}
}
stage('Publish') {
when {
branch 'main'
}
steps {
sh '''rm -rf /var/www/press/*
cp -r out/. /var/www/press'''
}
}
}
}