simplified: use npx wrangler

This commit is contained in:
wfz
2026-05-07 11:41:49 +08:00
parent 14f2181e91
commit be074b7726

11
Jenkinsfile vendored
View File

@@ -16,16 +16,9 @@ pipeline {
stage('Deploy') { stage('Deploy') {
steps { steps {
echo 'Deploying to Cloudflare Pages via wrangler...' echo 'Deploying to Cloudflare Pages...'
sh ''' sh '''
rm -f wrangler.toml npx wrangler pages deploy docs/.vitepress/dist --project-name=web-home
cat > wrangler.toml << EOF
name = "web-home"
account_id = "$CF_ACCOUNT_ID"
pages_project = "web-home"
compatibility_date = "2024-01-01"
EOF
wrangler pages deploy docs/.vitepress/dist
''' '''
} }
} }