Skip to content

ci: add GitHub Actions release and deployment workflow#19

Merged
x5iu merged 1 commit intomainfrom
cd/github-actions-deploy
Dec 28, 2025
Merged

ci: add GitHub Actions release and deployment workflow#19
x5iu merged 1 commit intomainfrom
cd/github-actions-deploy

Conversation

@x5iu
Copy link
Copy Markdown
Owner

@x5iu x5iu commented Dec 28, 2025

Summary

Add automated release and deployment workflow:

  • Trigger on successful "Go Test" runs on main branch (or manual dispatch)
  • Extract version from cmd/claude-code-adapter-cli/claude-code-adapter.go
  • Create tag and GitHub Release only when version changes
  • Upload binary artifact to GitHub Releases
  • Deploy to production server only after successful release

Workflow

Go Test ✓ → Check Version → Build → Release → Deploy
                 ↓
           (no change)
                 ↓
               Skip

Test plan

  • Verify workflow skips when version unchanged
  • Confirm tag and release creation with binary artifact
  • Verify deployment triggers only after release

🤖 Generated with Claude Code

Add automated workflow that:
- Triggers on successful "Go Test" workflow completion on main branch
- Extracts version from source code (cmd/claude-code-adapter-cli/claude-code-adapter.go)
- Only creates tag and GitHub Release when version changes
- Builds optimized Linux AMD64 binary and uploads to GitHub Releases
- Deploys to production server via SSH only after successful release
- Supports manual trigger via workflow_dispatch

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@x5iu x5iu force-pushed the cd/github-actions-deploy branch from 6218a4c to f9f18de Compare December 28, 2025 08:01
@x5iu x5iu changed the title ci: add GitHub Actions deployment workflow ci: add GitHub Actions release and deployment workflow Dec 28, 2025
@x5iu x5iu merged commit 2b51431 into main Dec 28, 2025
1 check passed
@x5iu x5iu deleted the cd/github-actions-deploy branch December 28, 2025 08:19
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