Skip to content

chore: CDのワークフローを追加 #24

chore: CDのワークフローを追加

chore: CDのワークフローを追加 #24

Workflow file for this run

name: Deploy Cloudflare Pages
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-24.04
permissions:
contents: read
deployments: write
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup tools
uses: jdx/mise-action@v2
- name: Install Dependencies
run: bun install --frozen-lockfile
- name: Build
run: bun run build
- name: Publish to Cloudflare Pages
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: pages deploy --commit-dirty=true
gitHubToken: ${{ secrets.GITHUB_TOKEN }}