Skip to content

[PRO-968] add a deploy step #55

[PRO-968] add a deploy step

[PRO-968] add a deploy step #55

Workflow file for this run

name: CI/CD
on:
push:
branches:
- main
pull_request:
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup and Build
uses: ./.github/actions/setup-and-build
- name: Run type check
run: pnpm run typecheck
# - name: Run ESLint
# run: pnpm run lint
- 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 }}