16 lines
No EOL
303 B
Groovy
16 lines
No EOL
303 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
|
|
cp ../out/** /var/www/press'''
|
|
}
|
|
}
|
|
}
|
|
} |