Skip to content

Commit c67f345

Browse files
committed
ci
1 parent 18d34a8 commit c67f345

File tree

6 files changed

+396
-430
lines changed

6 files changed

+396
-430
lines changed

.github/workflows/deploy-docs.yml

Lines changed: 0 additions & 34 deletions
This file was deleted.
Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Deploy Application
1+
name: Deploy
22
on:
33
push:
44
branches:
@@ -27,8 +27,17 @@ jobs:
2727
env:
2828
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
2929
run: |
30+
# build application
3031
pnpm install
3132
pnpm build:worker
3233
cp wrangler.toml.example wrangler.toml
3334
sed -i "s/{{DATABASE_ID}}/${{ secrets.CLOUDFLARE_DATABASE_ID }}/g" wrangler.toml
35+
36+
# build website
37+
cd docs
38+
pnpm install
39+
pnpm build
40+
cp -r ./output ../dist/home
41+
cd ..
42+
3443
pnpm deploy:worker

docs/open-next.config.ts

Lines changed: 0 additions & 3 deletions
This file was deleted.

docs/package.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,9 @@
66
"dev": "next dev --turbopack",
77
"build": "next build",
88
"start": "next start",
9-
"preview": "opennextjs-cloudflare build && opennextjs-cloudflare preview",
10-
"deploy": "opennextjs-cloudflare build && opennextjs-cloudflare deploy",
11-
"cf-typegen": "wrangler types --env-interface CloudflareEnv cloudflare-env.d.ts",
129
"lint": "next lint"
1310
},
1411
"dependencies": {
15-
"@opennextjs/cloudflare": "^1.6.2",
1612
"clsx": "^2.1.1",
1713
"lucide-react": "^0.525.0",
1814
"motion": "^12.23.9",

0 commit comments

Comments
 (0)