CI/CD for Deployment Automation
Continuous integration validates every change; continuous delivery promotes tested artifacts to cloud platforms. This guide shows a baseline pipeline suitable for apps, open-source libs, and docs sites.
Example GitHub Actions workflow
.github/workflows/deploy.yml
name: deploy
on:
push:
branches: [main]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: npm ci && npm test && npm run build
- run: npm run deploy # or docker build + push
Pipeline stages
- Lint & test — unit, integration, agent evals where applicable
- Build — static site, container image, or package artifact
- Preview — deploy docs or web previews per PR (web design)
- Promote — production deploy with approval gates
Docs and SEO in CI
- Fail builds on broken links (
onBrokenLinks: 'throw') - Validate each page has a unique meta description (SEO guide)