feat : Add overview component #1
This file contains 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: 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" |