Skip to content

chore/fix types (#70) #282

chore/fix types (#70)

chore/fix types (#70) #282

name: Deploy api
on:
workflow_dispatch:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
name: Deploy
steps:
- uses: actions/checkout@v4
- uses: dorny/paths-filter@v3
id: changes
with:
filters: |
api:
- 'apps/api/**'
- uses: pnpm/action-setup@v3
if: steps.changes.outputs.api == 'true' && ${{ github.event_name }}" != "workflow_dispatch"
with:
version: 8
- name: Deploy
if: steps.changes.outputs.api == 'true' && ${{ github.event_name }}" != "workflow_dispatch"
uses: cloudflare/wrangler-action@v3
with:
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
workingDirectory: apps/api
packageManager: pnpm