Skip to content

Commit bf94b2e

Browse files
committed
ci
1 parent 2739265 commit bf94b2e

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@ jobs:
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
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff 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...");

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
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",

0 commit comments

Comments
 (0)