deploy.ccSelf-hosting deploy handbook
deploy.cc / Generator

Deploy config generator

Pick a type, fill in options, get a ready-to-use file. Outputs are tested with actionlint, hadolint, systemd-analyze and docker build before release; action versions checked 2026-11-13.

.github/workflows/deploy-cloudflare-pages.yml
# Deploy a static build to Cloudflare Pages (deploy.cc)
# Secrets: CLOUDFLARE_API_TOKEN (Pages: Edit), CLOUDFLARE_ACCOUNT_ID
name: Deploy to Cloudflare Pages

on:
  push:
    branches: ['main']
  workflow_dispatch:

permissions:
  contents: read

concurrency:
  group: cf-pages-${{ github.ref }}
  cancel-in-progress: true

jobs:
  deploy:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v7
      - uses: actions/setup-node@v7
        with:
          node-version: '24'
          cache: npm
      - name: Install dependencies
        run: npm ci
      - name: Build
        run: 'npm run build'
      - name: Deploy
        uses: cloudflare/wrangler-action@v4
        with:
          apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
          accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
          command: pages deploy dist --project-name=my-site --branch=${{ github.ref_name }}

Inputs are restricted to safe characters; invalid values fall back to defaults.