17 lines
No EOL
343 B
Groovy
17 lines
No EOL
343 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'''
|
|
sh '''rm -r /var/www/press/*
|
|
cp ../out/** /var/www/press'''
|
|
}
|
|
}
|
|
}
|
|
} |