Skip to content

Commit 84736d4

Browse files
authored
ci: separate development and production registries (#63)
1 parent 2831aad commit 84736d4

2 files changed

Lines changed: 12 additions & 4 deletions

File tree

.github/workflows/validate.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747

4848
deploy-registry:
4949
needs: check
50-
if: github.ref == 'refs/heads/master' && github.event_name == 'push'
50+
if: github.event_name == 'push' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/development')
5151
runs-on: ubuntu-latest
5252
steps:
5353
- name: Checkout
@@ -69,11 +69,19 @@ jobs:
6969
- name: Build Registry
7070
run: bun run build:registry
7171

72-
- name: Deploy to Cloudflare Pages
72+
- name: Deploy Registry (production)
73+
if: github.ref == 'refs/heads/master'
74+
uses: cloudflare/wrangler-action@v3
75+
with:
76+
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
77+
command: pages deploy dist/registry --project-name=shaderbase-registry --branch=master
78+
79+
- name: Deploy Registry (development)
80+
if: github.ref == 'refs/heads/development'
7381
uses: cloudflare/wrangler-action@v3
7482
with:
7583
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
76-
command: pages deploy dist/registry --project-name=shaderbase-registry
84+
command: pages deploy dist/registry --project-name=shaderbase-registry --branch=development
7785

7886
# Web app deployment is pending — SolidJS + TanStack Start + Cloudflare Workers
7987
# has a known bundling issue (ssrStyleProperty not exported in worker mode).

packages/mcp/wrangler.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ WEB_APP_URL = "https://shaderbase.com"
1010
name = "shaderbase-mcp-dev"
1111

1212
[env.development.vars]
13-
REGISTRY_URL = "https://registry.shaderbase.com"
13+
REGISTRY_URL = "https://development.shaderbase-registry.pages.dev"
1414
WEB_APP_URL = "https://blissful-acceptance-development.up.railway.app"

0 commit comments

Comments
 (0)