deploy

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Deploy to Main

部署至Main分支

Automates the complete deployment workflow for pushing changes to production.
自动化将变更推送至生产环境的完整部署工作流。

Workflow

工作流

  1. Build: Run
    npm run build
    to ensure no compilation errors
  2. Status Check: Check git status for uncommitted changes
  3. Commit: Commit changes with a descriptive message
  4. Deploy: Push directly to main to trigger production deployment
  5. Confirm: Provide deployment status
  1. 构建:运行
    npm run build
    以确保无编译错误
  2. 状态检查:检查git状态,查看是否有未提交的变更
  3. 提交:使用描述性消息提交变更
  4. 部署:直接推送到main分支以触发生产环境部署
  5. 确认:提供部署状态

Commands

命令

bash
undefined
bash
undefined

Build project

Build project

npm run build
npm run build

Check status

Check status

git status git log --oneline -3
git status git log --oneline -3

Commit (if changes exist)

Commit (if changes exist)

git add -A git commit -m "chore: <descriptive message>"
git add -A git commit -m "chore: <descriptive message>"

Push directly to main

Push directly to main

git push origin main
undefined
git push origin main
undefined

When to Use

使用场景

  • "deploy to main"
  • "push changes to production"
  • "deploy these changes"
  • "/deploy"
  • "部署至main分支"
  • "推送变更至生产环境"
  • "部署这些变更"
  • "/deploy"