Skip to content

Commit 1d62a76

Browse files
ci: deploy docs to Cloudflare
1 parent 61f15d1 commit 1d62a76

File tree

3 files changed

+36
-8
lines changed

3 files changed

+36
-8
lines changed

.github/workflows/deploy.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Deploy
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
with:
14+
fetch-depth: 0
15+
- uses: pnpm/action-setup@v4
16+
- uses: actions/setup-node@v4
17+
with:
18+
node-version: 24
19+
registry-url: https://registry.npmjs.org/
20+
cache: pnpm
21+
22+
- run: pnpm install
23+
- run: pnpm run dev:prepare
24+
- run: pnpm run docs:build
25+
26+
- name: Deploy to Cloudflare Workers
27+
run: npx wrangler deploy
28+
env:
29+
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}

netlify.toml

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

wrangler.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
name = "nuxt-kql"
2+
compatibility_date = "2025-09-01"
3+
routes = [ { pattern = "nuxt-kql.byjohann.dev", custom_domain = true } ]
4+
5+
[assets]
6+
directory = "./docs/.vitepress/dist/"
7+
not_found_handling = "404-page"

0 commit comments

Comments
 (0)