This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Preview Deployment - Engine | |
env: | |
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
on: | |
push: | |
branches-ignore: | |
- main | |
paths: | |
- apps/engine/** | |
jobs: | |
deploy-preview: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: oven-sh/setup-bun@v1 | |
with: | |
bun-version: latest | |
- name: Install dependencies | |
run: bun install | |
# - name: 🔦 Run linter | |
# run: bun run lint --filter=@midday/engine | |
# - name: 🪐 Check TypeScript | |
# run: bun run typecheck --filter=@midday/engine | |
- name: Deploy Project Artifacts to Cloudflare | |
uses: cloudflare/wrangler-action@v3 | |
with: | |
packageManager: bun | |
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
workingDirectory: "apps/engine" | |
wranglerVersion: "3.60.1" | |
command: deploy --minify src/index.ts --name=engine-staging |