js-waku/ci/Jenkinsfile.gh-pages
Jakub 671c757fa2
ci: add Jenkinsfile for building docs page (#410)
CI setup that builds the `master` branch and pushes it to `gh-pages`
branch in the repo which is published by GitHub pages.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2022-01-24 11:53:45 +01:00

41 lines
721 B
Plaintext

pipeline {
agent { label 'linux' }
options {
disableConcurrentBuilds()
/* manage how many builds we keep */
buildDiscarder(logRotator(
numToKeepStr: '20',
daysToKeepStr: '30',
))
}
environment {
GIT_AUTHOR_NAME = 'status-im-auto'
GIT_AUTHOR_EMAIL = 'auto@status.im'
}
stages {
stage('Install Deps') {
steps {
sh 'yarn install'
}
}
stage('Build') {
steps {
sh 'yarn run doc'
}
}
stage('Publish Prod') {
when { expression { GIT_BRANCH.endsWith('docs-build') } }
steps { script {
sshagent(credentials: ['status-im-auto-ssh']) {
sh 'yarn run deploy'
}
} }
}
}
}