Deploy staging

From einverne/dotfiles · View interactive version

Deploy staging is an AI agent skill from the GitHub repository einverne/dotfiles. 将当前分支部署到测试环境。当用户要求部署、发布到测试或在 staging 环境测试时使用

How to use this skill

Skill file

部署到测试环境

前置条件检查

执行部署前,必须验证:

  1. 当前分支所有变更已提交
  1. 所有测试通过
  1. 代码已推送到远程仓库

部署流程

  1. 构建生产版本

```bash

npm run build:staging

```

  1. 运行部署脚本

```bash

./scripts/deploy-staging.sh

```

  1. 等待部署完成
  1. 验证部署

```bash

curl -f https://staging.example.com/health

```

  1. 报告部署结果

错误处理

如果部署失败:

  1. 保存错误日志到 .logs/deploy-staging-{timestamp}.log
  2. 建议用户检查日志
  3. 提供回滚命令:./scripts/rollback-staging.sh

部署后检查

部署成功后,提醒用户验证:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.