fix: correct TTS content-type to audio/mpeg (Deepgram returns MP3) #86
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Deploy Cloudflare Worker | |
| # 1. When should the robot run? | |
| on: | |
| push: | |
| branches: | |
| - main # Only run when code is pushed to the main branch | |
| paths: | |
| - 'backend/**' # ONLY run if a file inside the 'backend' folder was changed | |
| # 2. What should the robot do? | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| name: Deploy Worker | |
| steps: | |
| - name: Checkout Code | |
| uses: actions/checkout@v4 | |
| - name: Install Dependencies | |
| working-directory: backend | |
| run: npm ci | |
| - name: Deploy to Cloudflare | |
| uses: cloudflare/wrangler-action@v3 | |
| with: | |
| apiToken: ${{ secrets.CF_API_TOKEN }} | |
| accountId: ${{ secrets.CF_ACCOUNT_ID }} | |
| workingDirectory: 'backend' # Tells it where to find wrangler.toml | |
| command: deploy --env production |