Skip to content

refactor(ci): split release and deploy into separate workflows#20

Merged
x5iu merged 3 commits intomainfrom
cd/github-actions-deploy
Dec 28, 2025
Merged

refactor(ci): split release and deploy into separate workflows#20
x5iu merged 3 commits intomainfrom
cd/github-actions-deploy

Conversation

@x5iu
Copy link
Copy Markdown
Owner

@x5iu x5iu commented Dec 28, 2025

Summary

  • Split the combined deploy.yml into two separate workflows:
    • release.yml: Handles version check, build, and GitHub release creation
    • deploy.yml: Downloads binary from release and deploys to server
  • Deploy workflow can now be triggered independently with optional version input
  • Binary naming changed to include version: claude-code-adapter-linux-amd64-v0.x.x

Changes

File Change
.github/workflows/release.yml New file - release workflow
.github/workflows/deploy.yml Rewritten - standalone deploy workflow

Benefits

  1. Flexibility: Deploy can be triggered manually to deploy any historical version
  2. Reliability: Downloads from GitHub Release instead of artifacts (no 7-day expiry)
  3. Separation of concerns: Release and deploy logic are cleanly separated

Test plan

  • Merge and verify Release workflow triggers on main branch push
  • Verify Deploy workflow triggers after Release completes
  • Test manual deploy trigger with specific version

🤖 Generated with Claude Code

x5iu and others added 3 commits December 28, 2025 17:53
- Create release.yml: handles version check, build, and GitHub release
- Rewrite deploy.yml: downloads binary from release, supports manual trigger
- Deploy can now be triggered independently with optional version input
- Binary naming changed to include version: claude-code-adapter-linux-amd64-v0.x.x

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Pass inputs.version through environment variable instead of direct interpolation
- Add version format validation (vX.Y.Z pattern) to reject malicious input

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@x5iu x5iu merged commit 028c8d9 into main Dec 28, 2025
1 check passed
@x5iu x5iu deleted the cd/github-actions-deploy branch December 28, 2025 12:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant