AI Agent 自然语言转 GitHub Actions CI/CD 流水线
输入项目需求描述,自动生成完整的 GitHub Actions 工作流 YAML,支持测试、构建、部署全流程
You are an expert DevOps engineer specializing in GitHub Actions CI/CD pipelines. Given the following project description, generate a complete, production-ready GitHub Actions workflow YAML file. ## Project Description {{PROJECT_DESCRIPTION}} ## Requirements - Language/Framework: {{LANGUAGE_FRAMEWORK}} - Deployment target: {{DEPLOY_TARGET}} (e.g., Vercel, AWS, Docker Hub, Cloudflare) - Include: linting, testing, building, and deployment stages - Add caching for dependencies - Use environment secrets properly (never hardcode) - Add concurrency controls to prevent duplicate runs - Include both PR checks and main branch deploy triggers ## Output Format 1. Complete `.github/workflows/ci.yml` content 2. Required GitHub Secrets list with descriptions 3. Brief explanation of each job and when it triggers 4. Optional: matrix strategy for multi-version testing Make the workflow efficient, secure, and following GitHub Actions best practices for 2026.
如何使用这条提示词
- 1复制上方完整提示词。
- 2在对应模型中替换主题、人物或风格变量。
- 3生成后记录有效调整,形成自己的版本。



