Skip to content

Deploying to Cloudflare Pages #15

Deploying to Cloudflare Pages

Deploying to Cloudflare Pages #15

Workflow file for this run

name: Deploy to Cloudflare Pages
run-name: Deploying to Cloudflare Pages
on:
push:
branches: [ main ]
paths:
- ".github/workflows/docs.yml"
- "apps/docs/**"
- "packages/**"
- "!packages/tauri-*/**"
schedule:
- cron: "0 10 * * SUN"
workflow_dispatch:
permissions:
contents: read
deployments: write
concurrency:
group: cloudflare-pages
cancel-in-progress: true
jobs:
deploy:
runs-on: ubuntu-latest
environment:
name: cloudflare-pages
url: ${{ steps.deploy.outputs.deployment-url }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: latest
cache: yarn
- name: Install dependencies
run: yarn install --immutable
- name: Build
run: yarn workspace @blending/docs build
- name: Deploy
id: deploy
uses: cloudflare/wrangler-action@v3
with:
wranglerVersion: 3
accountId: 38794234ecc4906051a567a03b96d5bd
apiToken: ${{ secrets.CLOUDFLARE_TOKEN }}
packageManager: yarn
command: pages deploy apps/docs/dist --project-name=blending