This commit is contained in:
@@ -0,0 +1,34 @@
|
|||||||
|
name: Deploy
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [main]
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: deploy
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
deploy:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- uses: pnpm/action-setup@v4
|
||||||
|
with:
|
||||||
|
version: 12
|
||||||
|
|
||||||
|
- uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: 26
|
||||||
|
cache: pnpm
|
||||||
|
|
||||||
|
- run: pnpm install --frozen-lockfile
|
||||||
|
|
||||||
|
- run: pnpm build
|
||||||
|
|
||||||
|
- run: pnpm exec wrangler deploy
|
||||||
|
env:
|
||||||
|
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
||||||
|
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
||||||
@@ -19,3 +19,10 @@ pnpm-debug.log*
|
|||||||
|
|
||||||
# macOS-specific files
|
# macOS-specific files
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
|
||||||
|
# wrangler
|
||||||
|
.wrangler/
|
||||||
|
|
||||||
|
|
||||||
|
#Ignore vscode AI rules
|
||||||
|
.github/instructions/codacy.instructions.md
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ import starlight from '@astrojs/starlight';
|
|||||||
|
|
||||||
// https://astro.build/config
|
// https://astro.build/config
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
|
site: 'https://docs.woiken.com',
|
||||||
integrations: [
|
integrations: [
|
||||||
starlight({
|
starlight({
|
||||||
title: 'My Docs',
|
title: 'My Docs',
|
||||||
|
|||||||
@@ -13,5 +13,8 @@
|
|||||||
"@astrojs/starlight": "^0.42.4",
|
"@astrojs/starlight": "^0.42.4",
|
||||||
"astro": "^7.2.10",
|
"astro": "^7.2.10",
|
||||||
"sharp": "^0.35.3"
|
"sharp": "^0.35.3"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"wrangler": "^4.142.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Generated
+852
-13
File diff suppressed because it is too large
Load Diff
@@ -1,3 +1,4 @@
|
|||||||
allowBuilds:
|
allowBuilds:
|
||||||
esbuild: true
|
esbuild: true
|
||||||
sharp: true
|
sharp: true
|
||||||
|
workerd: true
|
||||||
|
|||||||
@@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"$schema": "node_modules/wrangler/config-schema.json",
|
||||||
|
"name": "woiken-docs",
|
||||||
|
"compatibility_date": "2026-09-28",
|
||||||
|
"assets": {
|
||||||
|
"directory": "./dist",
|
||||||
|
"not_found_handling": "404-page"
|
||||||
|
},
|
||||||
|
"routes": [{ "pattern": "docs.woiken.com", "custom_domain": true }]
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user