Skip to content

fix: use cache with ogimage #52

fix: use cache with ogimage

fix: use cache with ogimage #52

Workflow file for this run

name: deploy
on:
push:
branches: [main]
pull_request:
types: [opened, synchronize, reopened]
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: read
deployments: write
name: Deploy to Cloudflare Pages
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: '1.0.0'
- name: Install dependencies
run: bun install
- name: Build project
run: bun run build
- name: deploy to Cloudflare Pages
id: cloudflare_pages_deploy
uses: cloudflare/pages-action@v1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: "blog"
directory: './dist'
gitHubToken: ${{ secrets.GITHUB_TOKEN }}