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