mirror of
https://github.com/stackblitz-labs/bolt.diy
synced 2025-06-26 18:26:38 +00:00
[PRO-968] add a deploy step (#25)
found https://github.com/cloudflare/wrangler-action and figured that'd be a better thing than doing our own. will need to iterate on this on main, I expect. will need to add GH secrets `CLOUDFLARE_API_TOKEN` and `CLOUDFLARE_ACCOUNT_ID`
This commit is contained in:
parent
76059dc19c
commit
1938ee624f
10
.github/workflows/ci.yaml
vendored
10
.github/workflows/ci.yaml
vendored
@ -3,7 +3,7 @@ name: CI/CD
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- main
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@ -25,3 +25,11 @@ jobs:
|
|||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: pnpm run test
|
run: pnpm run test
|
||||||
|
|
||||||
|
- name: Deploy
|
||||||
|
if: github.ref == 'refs/heads/main'
|
||||||
|
uses: cloudflare/wrangler-action@v3
|
||||||
|
with:
|
||||||
|
command: pages deploy
|
||||||
|
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
||||||
|
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
||||||
|
Loading…
Reference in New Issue
Block a user