Environment:777genius Agent teams ai GitHub CLI
| Knowledge Sources | |
|---|---|
| Domains | Infrastructure, CI_CD |
| Last Updated | 2026-10-22 00:00 GMT |
Overview
GitHub CLI (`gh`) for creating releases, uploading platform artifacts, and managing release promotion from the command line.
Description
The GitHub CLI is used in the release publication workflow to create GitHub releases, upload platform-specific build artifacts, and manage release assets. The release promotion guide documents using `gh release` commands for creating drafts, uploading assets, and promoting releases. The CLI is also used for CI qualification checks and release verification.
Usage
Use this environment for the GitHub release publication implementation that creates releases and uploads artifacts via the GitHub CLI.
System Requirements
| Category | Requirement | Notes |
|---|---|---|
| Tool | `gh` (GitHub CLI) >= 2.0 | Installed via brew/apt/scoop |
| Auth | `gh auth login` | Authenticated session required |
| Repo | Write access to 777genius/agent-teams-ai | For release creation |
Dependencies
System Packages
- `gh` (GitHub CLI) >= 2.0
Credentials
- `GITHUB_TOKEN` — GitHub API token (alternative to `gh auth login`)
Quick Install
# Install GitHub CLI
brew install gh # macOS
sudo apt install gh # Linux (Debian/Ubuntu)
scoop install gh # Windows
# Authenticate
gh auth login
# Verify access
gh repo view 777genius/agent-teams-ai
Code Evidence
Release publication reference from `docs/release-promotion.md`:
# Create a draft release
gh release create v2.17.10 --draft --notes-file CHANGELOG.md
# Upload platform artifacts
gh release upload v2.17.10 dist/*.dmg dist/*.exe dist/*.AppImage
CI qualification reference from `docs/ci-qualification.md`:
# Verify release assets
gh release view v2.17.10 --json assets
Common Errors
| Error Message | Cause | Solution |
|---|---|---|
| `gh: command not found` | GitHub CLI not installed | Install via brew/apt/scoop |
| `authentication required` | Not logged in | Run `gh auth login` |
| `release already exists` | Duplicate release tag | Use `--draft` first, then promote |
Compatibility Notes
- Token auth: `GITHUB_TOKEN` env var can be used instead of interactive `gh auth login` for CI.
- Asset limits: GitHub release assets limited to 2GB each; Electron builds typically well under this.
- Rate limits: GitHub API rate limits apply; use `--cache` for repeated operations.