Skip to content

feat : Add overview component #1

feat : Add overview component

feat : Add overview component #1

name: Build and Deploy Astro to Cloudflare Pages
on:
push:
branches:
- main
paths:
- "apps/frontend/**"
jobs:
build-and-deploy:
runs-on: ubuntu-latest
permissions:
contents: read
deployments: write
steps:
- name: Checkout repository
uses: actions/[email protected]
- name: Setup Bun
uses: oven-sh/[email protected]
with:
bun-version: latest
- name: Install dependencies
run: bun install
- name: Build Astro project
run: bun run build
- name: Deploy to Cloudflare Pages
uses: cloudflare/[email protected]
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: project-vpl # Cloudflare Pages project name
directory: apps/frontend/dist
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
wranglerVersion: "3"