mirror of
https://github.com/open-webui/open-webui
synced 2025-06-13 09:55:04 +00:00
feat: Cloudflare Workers用CI/CD(GitHub Actions)とwrangler.toml追加 - OpenWEBUI自動デプロイ基盤
This commit is contained in:
parent
ea0e186c19
commit
fd87f4e07c
28
.github/workflows/deploy.yml
vendored
Normal file
28
.github/workflows/deploy.yml
vendored
Normal 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
5
wrangler.toml
Normal 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"
|
Loading…
Reference in New Issue
Block a user