feat: Cloudflare Workers用CI/CD(GitHub Actions)とwrangler.toml追加 - OpenWEBUI自動デプロイ基盤

This commit is contained in:
johnnash2025 2025-05-29 21:14:30 +09:00
parent ea0e186c19
commit fd87f4e07c
2 changed files with 33 additions and 0 deletions

28
.github/workflows/deploy.yml vendored Normal file
View File

@ -0,0 +1,28 @@
name: Deploy to Cloudflare Workers
on:
push:
branches:
- main # デプロイしたいブランチ名に合わせて変更可
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
run: npm install
- name: Build for Cloudflare Workers
run: npx wrangler build
- name: Publish to Cloudflare Workers
run: npx wrangler publish
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}

5
wrangler.toml Normal file
View File

@ -0,0 +1,5 @@
name = "openwebui"
main = "dist/worker.js"
account_id = "YOUR_CLOUDFLARE_ACCOUNT_ID"
workers_dev = true
compatibility_date = "2024-05-29"