Skip to content

Commit 3d0ae77

Browse files
ci: deploy docs to Cloudflare Workers
1 parent 7fcf177 commit 3d0ae77

File tree

4 files changed

+37
-10
lines changed

4 files changed

+37
-10
lines changed

.github/workflows/deploy.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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 docs:build
24+
25+
- name: Deploy to Cloudflare Workers
26+
run: npx wrangler deploy
27+
env:
28+
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}

docs/uno.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { defineConfig, presetIcons, presetUno, transformerDirectives } from 'unocss'
1+
import { defineConfig, presetIcons, presetWind3, transformerDirectives } from 'unocss'
22

33
export default defineConfig({
44
presets: [
5-
presetUno(),
5+
presetWind3(),
66
presetIcons(),
77
],
88
transformers: [

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 = "unlazy"
2+
compatibility_date = "2025-09-01"
3+
routes = [ { pattern = "unlazy.byjohann.dev", custom_domain = true } ]
4+
5+
[assets]
6+
directory = "./docs/.vitepress/dist/"
7+
not_found_handling = "404-page"

0 commit comments

Comments
 (0)