diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..24e954c --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,29 @@ +name: deploy + +on: + push: + branches: ["main"] + +permissions: + contents: read + +jobs: + deploy: + runs-on: ubuntu-latest + timeout-minutes: 15 + concurrency: + group: deploy-${{ github.ref }} + cancel-in-progress: true + + steps: + - uses: actions/checkout@v4 + - uses: oven-sh/setup-bun@v2 + with: + bun-version: 1.3.4 + + - run: bun install --frozen-lockfile + - run: bun run check + - run: bun astro build + - run: bun wrangler deploy --env live + env: + CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}