forked from midday-ai/midday
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (37 loc) · 1.05 KB
/
production-engine.yml
File metadata and controls
37 lines (37 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Production Deployment - Engine
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
on:
push:
branches:
- main
paths:
- apps/engine/**
jobs:
deploy-production:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
with:
bun-version: v1.2.23
- name: Install dependencies
run: bun install
- name: 🔦 Run linter
run: bun run lint
working-directory: ./apps/engine
- name: 🪐 Check TypeScript
run: bun run typecheck
working-directory: ./apps/engine
- name: 🧪 Run unit tests
run: bun test
working-directory: ./apps/engine
- name: Deploy Project Artifacts to Cloudflare
uses: cloudflare/wrangler-action@v3
with:
packageManager: bun
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
workingDirectory: "apps/engine"
wranglerVersion: "4.33.2"
command: deploy --minify src/index.ts --env production