chore: build a workflow to deploy site automatically
Deploy / deploy (push) Failing after 4s

This commit is contained in:
2026-09-28 22:03:55 +02:00
parent d8eb5d7504
commit b8f7168d64
6 changed files with 882 additions and 4 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 }}
+3
View File
@@ -43,3 +43,6 @@ next-env.d.ts
#Ignore vscode AI rules
.github/instructions/codacy.instructions.md
# wrangler
.wrangler
+2 -1
View File
@@ -28,7 +28,8 @@
"eslint-config-next": "16.3.6",
"postcss": "^8",
"tailwindcss": "^3.4.1",
"typescript": "^5"
"typescript": "^5",
"wrangler": "^4.142.0"
},
"packageManager": "pnpm@12.4.2"
}
+831 -3
View File
File diff suppressed because it is too large Load Diff
+2
View File
@@ -1,2 +1,4 @@
allowBuilds:
esbuild: true
sharp: false
workerd: true
+10
View File
@@ -0,0 +1,10 @@
{
"$schema": "node_modules/wrangler/config-schema.json",
"name": "woiken-website",
"compatibility_date": "2026-09-28",
"assets": {
"directory": "./out",
"not_found_handling": "404-page"
},
"routes": [{ "pattern": "woiken.com", "custom_domain": true }]
}