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.
Actions → Cloudflare PagesActions → GitHub PagesActions → SSH deploy to VPSActions → Docker build & pushDockerfiledocker-compose.ymlsystemd unitPM2 ecosystem
.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 }}
- Create the Pages project first (Direct Upload) or with wrangler pages project create.
- The API token only needs Account → Cloudflare Pages → Edit.
- Pushes to main deploy production; other branches become previews (per the project's production branch).
- npm ci and the setup-node npm cache need a committed package-lock.json.
Inputs are restricted to safe characters; invalid values fall back to defaults.