fix: correct do #155
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 Backend and Web App | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths-ignore: | |
| - apps/marketing-app/** | |
| workflow_dispatch: | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 60 | |
| steps: | |
| - uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: 1.2.18 | |
| - uses: actions/checkout@v4 | |
| - name: Install dependencies | |
| run: bun install | |
| # disabling biome because we need to cleanup the codebase first | |
| # - name: Setup Biome | |
| # uses: biomejs/setup-biome@v2 | |
| # with: | |
| # version: latest | |
| # - name: Run Biome | |
| # run: biome ci . | |
| - name: Deploy API | |
| id: deploy-api | |
| uses: cloudflare/wrangler-action@v3 | |
| with: | |
| apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
| accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | |
| workingDirectory: apps/api | |
| packageManager: bun | |
| - name: Build Web App | |
| run: cd apps/web-app && bun run build | |
| env: | |
| VITE_API_URL: ${{ vars.PUBLIC_API_URL }} | |
| VITE_WEB_APP_URL: ${{ vars.WEB_APP_URL }} | |
| VITE_MARKETING_APP_URL: ${{ vars.MARKETING_APP_URL }} | |
| VITE_STRIPE_CUSTOMER_PORTAL: ${{ vars.VITE_STRIPE_CUSTOMER_PORTAL }} | |
| VITE_GITHUB_INTEGRATION_APP_NAME: ${{ vars.VITE_GITHUB_INTEGRATION_APP_NAME }} | |
| VITE_SLACK_INTEGRATION_APP_CLIENT_ID: ${{ vars.VITE_SLACK_INTEGRATION_APP_CLIENT_ID }} | |
| VITE_DISCORD_INTEGRATION_APP_CLIENT_ID: ${{ vars.VITE_DISCORD_INTEGRATION_APP_CLIENT_ID }} | |
| TZ: UTC | |
| - name: Deploy Web App | |
| uses: cloudflare/wrangler-action@v3 | |
| with: | |
| apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
| accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | |
| gitHubToken: ${{ secrets.GITHUB_TOKEN }} | |
| workingDirectory: apps/web-app | |
| packageManager: bun |