feat: add cloudflare deployment workflow
Deploy / deploy (push) Successful in 10m6s

This commit is contained in:
2026-09-28 21:30:27 +02:00
parent 6a8db50334
commit 3dafcb7d58
7 changed files with 908 additions and 13 deletions
+34
View File
@@ -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 }}
+7
View File
@@ -19,3 +19,10 @@ pnpm-debug.log*
# macOS-specific files
.DS_Store
# wrangler
.wrangler/
#Ignore vscode AI rules
.github/instructions/codacy.instructions.md
+1
View File
@@ -4,6 +4,7 @@ import starlight from '@astrojs/starlight';
// https://astro.build/config
export default defineConfig({
site: 'https://docs.woiken.com',
integrations: [
starlight({
title: 'My Docs',
+3
View File
@@ -13,5 +13,8 @@
"@astrojs/starlight": "^0.42.4",
"astro": "^7.2.10",
"sharp": "^0.35.3"
},
"devDependencies": {
"wrangler": "^4.142.0"
}
}
+852 -13
View File
File diff suppressed because it is too large Load Diff
+1
View File
@@ -1,3 +1,4 @@
allowBuilds:
esbuild: true
sharp: true
workerd: true
+10
View File
@@ -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 }]
}