Initial commit
This commit is contained in:
28
Jenkinsfile
vendored
Normal file
28
Jenkinsfile
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
pipeline {
|
||||
agent any
|
||||
|
||||
stages {
|
||||
stage('Build') {
|
||||
steps {
|
||||
echo 'Building VitePress site...'
|
||||
sh 'npm ci && npm run build'
|
||||
}
|
||||
}
|
||||
|
||||
stage('Deploy') {
|
||||
steps {
|
||||
echo 'Deploying to Cloudflare Pages...'
|
||||
sh 'npx wrangler pages deploy docs/.vitepress/dist --project-name=web-home --branch main'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
post {
|
||||
success {
|
||||
echo 'Deployment successful!'
|
||||
}
|
||||
failure {
|
||||
echo 'Deployment failed!'
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user