Add GitHub Actions workflow: build, package, and deploy to Cloudflare Workers

This commit is contained in:
Ally Founder 2026-08-08 19:53:35 -04:00
parent bd62cde522
commit cb9dc75323

35
.github/workflows/deploy.yml vendored Normal file
View file

@ -0,0 +1,35 @@
name: Build and deploy
on:
push:
branches: [main]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Bun
uses: oven-sh/setup-bun@v2
- name: Set up JDK 25
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: "25"
- name: Install JS deps
run: bun install
- name: Package all plugins
run: ./gradlew packageAllPlugins
- name: Generate repository index
run: bun run generate-index -- --dist build/dist --base-url https://next.jarviscli.dev --out build/dist/index.json
- name: Deploy to Cloudflare Workers
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
run: bunx wrangler deploy