File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 3838 run : |
3939 # build application
4040 sed -i "s/DATABASE_ID/${{ secrets.CLOUDFLARE_DATABASE_ID }}/g" wrangler.toml
41- node scripts/deploy.js --preview --production
41+ node .github/workflows/ scripts/deploy.js --preview --production
Original file line number Diff line number Diff line change @@ -95,10 +95,11 @@ function buildAndDeploy(docs) {
9595
9696 if ( docs ) {
9797 console . log ( "📚 Building documentation..." ) ;
98- execSync ( "npm run build:docs" , { stdio : "inherit" } ) ;
98+ execSync (
99+ "cd ./docs && npm install && npm run build && cp -r ./out/ ../dist/home && cd .." ,
100+ { stdio : "inherit" }
101+ ) ;
99102 console . log ( "✅ Documentation built successfully" ) ;
100-
101- console . log ( "📦 Documentation copied to dist/home successfully" ) ;
102103 }
103104
104105 console . log ( "🚀 Deploying to Cloudflare..." ) ;
Original file line number Diff line number Diff line change 88 "dev:worker" : " wrangler dev" ,
99 "build" : " tsc -b && cross-env RUNTIME=cloudflare vite build" ,
1010 "build:node" : " tsc -b && vite build && tsup --minify" ,
11- "build:docs" : " cd ./docs && pnpm build && cp -r ./out/ ../dist/home && cd .." ,
1211 "analyze" : " vite build --mode analyze" ,
1312 "lint" : " eslint ." ,
1413 "preview" : " vite preview" ,
You can’t perform that action at this time.
0 commit comments