fix: max steps #7
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 API and Changelog App | |
| on: | |
| push: | |
| branches: | |
| - main | |
| 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 | |
| - name: Deploy Changelog API | |
| id: deploy-changelog-api | |
| uses: cloudflare/wrangler-action@v3 | |
| with: | |
| apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
| accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | |
| workingDirectory: apps/changelog-api | |
| packageManager: bun | |
| - name: Build Changelog App | |
| run: cd apps/changelog-app && bun run build | |
| env: | |
| VITE_CHANGELOG_API_URL: ${{ vars.VITE_CHANGELOG_API_URL }} | |
| VITE_CHANGELOGS_APP_URL: ${{ vars.VITE_CHANGELOGS_APP_URL }} | |
| VITE_SHORT_URL: ${{ vars.VITE_SHORT_URL }} | |
| TZ: UTC | |
| - name: Deploy Changelog App | |
| uses: cloudflare/wrangler-action@v3 | |
| with: | |
| apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
| accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | |
| gitHubToken: ${{ secrets.GITHUB_TOKEN }} | |
| workingDirectory: apps/changelog-app | |
| packageManager: bun | |