[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:
Chris Toshok 2025-02-18 12:41:20 -08:00 committed by GitHub
parent 76059dc19c
commit 1938ee624f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3,7 +3,7 @@ name: CI/CD
on:
push:
branches:
- master
- main
pull_request:
jobs:
@ -25,3 +25,11 @@ jobs:
- name: Run tests
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 }}