Compare commits
No commits in common. "5a951d8c905b0797a85b295dc831f725baba5059" and "9561887e4b84babedf477cd9bf36b27c4d1bdd2d" have entirely different histories.
5a951d8c90
...
9561887e4b
3
.gitignore
vendored
3
.gitignore
vendored
@ -2,5 +2,4 @@ node_modules
|
||||
dist
|
||||
.wrangler
|
||||
**/DS_Store
|
||||
DS_Store
|
||||
.DS_Store
|
||||
DS_Store
|
||||
25
Jenkinsfile
vendored
25
Jenkinsfile
vendored
@ -1,25 +0,0 @@
|
||||
def deploy() {
|
||||
node('ubuntu') {
|
||||
try {
|
||||
stage('Deploy (Ubuntu)') {
|
||||
checkout scm
|
||||
|
||||
nodejs(nodeJSInstallationName: 'Node23') {
|
||||
sh 'yarn install --frozen-lockfile --production=false'
|
||||
|
||||
sh 'NODE_ENV=production yarn build'
|
||||
|
||||
// Deploy to Cloudflare Pages using wrangler
|
||||
withCredentials([string(credentialsId: 'th-cloudflare-api-token', variable: 'CLOUDFLARE_API_TOKEN')]) {
|
||||
sh 'yarn wrangler pages deploy dist'
|
||||
}
|
||||
}
|
||||
}
|
||||
} finally {
|
||||
cleanWs()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
deploy()
|
||||
|
||||
@ -40,7 +40,7 @@
|
||||
"build": "vite build",
|
||||
"lint": "eslint .",
|
||||
"preview": "npm run build && vite preview",
|
||||
"deploy": "npm run build && wrangler pages deploy ./dist --skip-caching --branch production"
|
||||
"deploy": "npm run build && wrangler pages deploy ./dist --skip-caching"
|
||||
},
|
||||
"eslintConfig": {
|
||||
"extends": [
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user