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-github-pages.yml
# Build and publish to GitHub Pages (deploy.cc)
# Repo → Settings → Pages → Source: GitHub Actions
name: Deploy to GitHub Pages

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

permissions:
  contents: read
  pages: write
  id-token: write

concurrency:
  group: pages
  cancel-in-progress: false

jobs:
  build:
    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'
      - uses: actions/configure-pages@v6
      - uses: actions/upload-pages-artifact@v5
        with:
          path: 'dist'

  deploy:
    needs: build
    runs-on: ubuntu-latest
    environment:
      name: github-pages
      url: ${{ steps.deployment.outputs.page_url }}
    steps:
      - id: deployment
        uses: actions/deploy-pages@v5

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