-
Notifications
You must be signed in to change notification settings - Fork 2
44 lines (36 loc) · 1.03 KB
/
deploy-github.yml
File metadata and controls
44 lines (36 loc) · 1.03 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
38
39
40
41
42
43
44
name: Deploy GitHub MCP
on:
workflow_dispatch:
push:
branches:
- main
paths:
- "github/**"
- ".github/workflows/deploy-github.yml"
jobs:
deploy:
runs-on: ubuntu-latest
defaults:
run:
working-directory: github
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Cache Bun dependencies
uses: actions/cache@v4
with:
path: ~/.bun/install/cache
key: ${{ runner.os }}-bun-github-${{ hashFiles('github/bun.lock', 'github/package.json') }}
restore-keys: ${{ runner.os }}-bun-github-
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Type check
run: bun run check
continue-on-error: true
- name: Deploy to Cloudflare Workers
run: bunx wrangler deploy
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}