Merge the Authentication and Credentials sections on surface pages (#24) #49
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 to Cloudflare | |
| on: | |
| push: | |
| branches: [main] | |
| workflow_dispatch: | |
| # Only one deploy at a time; cancel an in-flight run when a newer push lands. | |
| concurrency: | |
| group: deploy-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: latest | |
| - name: Install dependencies | |
| run: bun install --frozen-lockfile | |
| # normalize -> astro build, exactly as `bun run build` does locally. | |
| # normalize regenerates output/*.json from sources/ + overrides/ (they're | |
| # gitignored derived data, not checked in). | |
| - name: Build | |
| run: bun run build | |
| - name: Deploy | |
| uses: cloudflare/wrangler-action@v3 | |
| with: | |
| apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
| accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | |
| # dist/ is already built above; just upload + deploy. | |
| command: deploy |