agentworkforce avatar

Deploying To Staging Environment

This orchestrates staging deployments across three interdependent repos (relay, relay-dashboard, relay-cloud) using git worktrees to keep your working directory clean while syncing branches. You push main or feature branches to staging in each repo, and when relay-cloud's staging branch updates, it automatically triggers GitHub Actions to deploy everything to Fly.io with health checks. The worktree approach is solid engineering, isolating the staging push operation so you don't accidentally pollute your current work. Main gotcha is remembering that only relay-cloud triggers the actual deployment, so you need to coordinate all three repos or manually override branch references in the GitHub workflow. Best for multi-repo feature integration where changes span components.

GitHub stars
719
last updated
Jun 11, 2026

Install

$ npx -y skills add agentworkforce/relay --skill deploying-to-staging-environment --agent claude-code

Installs into .claude/skills of the current project.

Files

Deploying to Staging Environment

Overview

The staging environment deployment is a coordinated multi-repo process that synchronizes code across three repositories (relay, relay-dashboard, relay-cloud) and automatically triggers deployment via GitHub Actions. Staging deployments ensure feature verification before production while keeping main branch clean during development.

When to Use

  • Integrating features across repos - Multiple components depend on changes in different repos
  • Testing feature branches together - Verify feature branch changes don't break integration
  • Promoting main to staging - Standard sync to keep staging up-to-date with latest main
  • Verifying deployment readiness - Test infrastructure changes or deployment workflows
  • Cross-team coordination - Share feature branches for integration testing

When NOT to use:

  • Emergency hotfixes (use production deployment instead)
  • Single-repo changes only (push directly if not blocking other repos)
  • Testing without intent to deploy (use local environment instead)

Architecture

The staging deployment system consists of:

Sponsors

Details

Repository
github.com/agentworkforce/relay
Categories
Git & Pull Requests, Cloud & Infrastructure
License
Apache-2.0
First seen
Jun 11, 2026

More from agentworkforce/relay

All 18
1agentworkforce avatarrelay-80-100-workflowagentworkforce/relayMost agent workflows stop at "the code compiles." This one pushes to "the feature actually works, tested end-to-end, before commit."...0skills.sh installs
2cherryhq avatarprepare-releasecherryhq/cherry-studioPrepare a new release by collecting commits, generating bilingual release notes, updating version files, and creating a release branch with PR. Use when asked t0skills.sh installs
3claude-office-skills avatarJira Automationclaude-office-skills/skillsAutomate Jira project management workflows, sprint planning, issue tracking, and reporting0skills.sh installs
4claude-office-skills avatarLinear Automationclaude-office-skills/skillsAutomate Linear issue tracking, cycle planning, roadmap management, and engineering workflows0skills.sh installs
5codeaholicguy avatardev-lifecyclecodeaholicguy/ai-devkitAI DevKit · Structured SDLC workflow with 8 phases — requirements, design review, planning, implementation, testing, and code review. Use when the user wants to0skills.sh installs
6davila7 avatarTop 100 Web Vulnerabilities Referencedavila7/claude-code-templatesThis skill should be used when the user asks to "identify web application vulnerabilities", "explain common security flaws", "understand vulnerability categorie0skills.sh installs