This document describes how to create a new release of the Rundeck Go SDK.
This repository contains two independent Go modules:
rundeck-v2/- Modern SDK (OpenAPI Generator, API v56) ⭐ Recommendedrundeck/- Legacy SDK (AutoRest-based)⚠️ Deprecated
Each module is versioned independently using module-prefixed tags.
# 1. Ensure you're on master with latest changes
git checkout master
git pull origin master
# 2. Create and push module-prefixed tag
git tag -a rundeck-v2/v1.3.0 -m "Release rundeck-v2 v1.3.0"
git push origin rundeck-v2/v1.3.0
# 3. Done! GitHub Actions automatically:
# ✅ Builds the SDK
# ✅ Runs tests
# ✅ Creates release with notes
# ✅ Updates Go proxyGo's module system requires tags to be prefixed with the module path:
| Tag Format | Module | Use Case |
|---|---|---|
rundeck-v2/v1.3.0 |
rundeck-v2 | Use this for v2 SDK releases |
rundeck/v1.3.0 |
rundeck | Legacy SDK (rarely needed) |
v1.3.0 |
Both | Combined release (avoid unless intentional) |
Why? In multi-module repos, Go needs the prefix to know which module you're releasing.
Ensure all changes are merged to master:
git checkout master
git pull origin masterFollow Semantic Versioning:
- MAJOR (v2.0.0): Breaking API changes
- MINOR (v1.1.0): New features, backwards compatible
- PATCH (v1.0.1): Bug fixes, backwards compatible
Note: rundeck-v2 and rundeck versions are independent. They don't need to match.
For rundeck-v2 (recommended):
git tag -a rundeck-v2/v1.3.0 -m "Release rundeck-v2 v1.3.0
- Add new feature X
- Fix bug Y
- Update to API v56"
git push origin rundeck-v2/v1.3.0For rundeck (legacy, rare):
git tag -a rundeck/v1.3.0 -m "Release rundeck v1.3.0"
git push origin rundeck/v1.3.0GitHub Actions will automatically:
- ✅ Detect the module from the tag
- ✅ Build the specific module
- ✅ Run tests
- ✅ Generate changelog since last module release
- ✅ Create GitHub release with module-specific notes
- ✅ Update Go proxy
Watch progress: GitHub Actions
Once complete, verify the release:
# Check Go proxy has the version (wait 1-2 minutes)
curl https://proxy.golang.org/github.com/rundeck/go-rundeck/rundeck-v2/@v/v1.3.0.info
# Test installation
mkdir /tmp/test-sdk && cd /tmp/test-sdk
go mod init test
go get github.com/rundeck/go-rundeck/rundeck-v2@v1.3.0rundeck-v2 (recommended):
require (
github.com/rundeck/go-rundeck/rundeck-v2 v1.3.0
)rundeck (legacy):
require (
github.com/rundeck/go-rundeck/rundeck v1.3.0
)# Install rundeck-v2
go get github.com/rundeck/go-rundeck/rundeck-v2@v1.3.0
# Or rundeck (legacy)
go get github.com/rundeck/go-rundeck/rundeck@v1.3.0For testing before official release:
# Create pre-release tag
git tag -a rundeck-v2/v1.3.0-rc.1 -m "Release Candidate 1"
git push origin rundeck-v2/v1.3.0-rc.1Pre-release suffixes: -rc, -beta, -alpha
These are automatically marked as pre-releases on GitHub.
The workflow automatically generates module-specific release notes:
- ✨ Feature highlights (196 endpoints, Runner API, etc.)
- 📦 Installation instructions
- 📝 Changelog since last v2 release
- 📚 Documentation links
- 🔧 Go compatibility info
⚠️ Deprecation warning- 🔄 Migration guide to rundeck-v2
- 📦 Installation instructions
- 📝 Changelog since last legacy release
If the GitHub Action fails:
-
Check the logs:
- Go to Actions tab
- Click the failed workflow run
- Review error messages
-
Fix the issue (common causes):
- Build errors in SDK
- Test failures
- Invalid tag format
-
Delete and recreate the tag:
# Delete locally git tag -d rundeck-v2/v1.3.0 # Delete remotely git push origin :refs/tags/rundeck-v2/v1.3.0 # Fix the issue, then recreate git tag -a rundeck-v2/v1.3.0 -m "Release rundeck-v2 v1.3.0" git push origin rundeck-v2/v1.3.0
The Go proxy can take 1-5 minutes to index new versions:
# Manually trigger proxy update
curl "https://proxy.golang.org/github.com/rundeck/go-rundeck/rundeck-v2/@v/v1.3.0.info"
# Check if it's available
curl "https://sum.golang.org/lookup/github.com/rundeck/go-rundeck/rundeck-v2@v1.3.0"If it still doesn't appear after 10 minutes:
- Verify the tag exists:
git ls-remote --tags origin - Check that
go.modhas correct module path - Ensure the release workflow completed successfully
If you tagged the wrong module:
- Delete the release on GitHub
- Delete the tag:
git tag -d rundeck-v2/v1.3.0 git push origin :refs/tags/rundeck-v2/v1.3.0
- Create the correct tag
Note: Go proxy caches are immutable. If the wrong version was published, you'll need to bump to the next version.
If you accidentally created a root tag (e.g., v1.3.0):
- This creates a combined release for both modules
- Usually not what you want
- Delete and recreate with module prefix
Before creating a release:
- All changes merged to
master - Tests pass locally:
cd rundeck-v2 && go test ./... - SDK builds:
cd rundeck-v2 && go build - OpenAPI spec is valid
- README is up to date
- Breaking changes are documented (for MAJOR versions)
- Version number follows semver
- Using correct tag format:
rundeck-v2/v*.*.*
Each module maintains its own version history:
rundeck-v2/v1.0.0 → First release of v2
rundeck-v2/v1.1.0 → Add new features to v2
rundeck-v2/v1.2.0 → More v2 features
rundeck/v1.0.0 → Legacy SDK release (independent)
rundeck-v2:
- MAJOR: Breaking changes to v2 API
- MINOR: New endpoints, new features
- PATCH: Bug fixes, documentation
rundeck (legacy):
- Only release if critical security/bug fixes needed
- Otherwise, direct users to rundeck-v2
For new development:
- ✅ Release
rundeck-v2/vX.Y.Zregularly ⚠️ Avoid releasingrundeck/vX.Y.Z(deprecated)- ❌ Avoid root tags
vX.Y.Z(ambiguous)
# Scenario: Added job tags query endpoints to rundeck-v2
git checkout master
git pull origin master
# Current version is v1.2.0, adding features → v1.3.0 (MINOR bump)
git tag -a rundeck-v2/v1.3.0 -m "Release rundeck-v2 v1.3.0
Features:
- Add job tags query endpoints
- Improve error handling
- Update to API v56"
git push origin rundeck-v2/v1.3.0# Scenario: Fixed error response parsing bug
git checkout master
git pull origin master
# Current version is v1.3.0, bug fix → v1.3.1 (PATCH bump)
git tag -a rundeck-v2/v1.3.1 -m "Release rundeck-v2 v1.3.1
Fixes:
- Fix ApiErrorResponse boolean parsing
- Correct enum value cases"
git push origin rundeck-v2/v1.3.1# Scenario: Changed SDK architecture (rare)
git checkout master
git pull origin master
# Current version is v1.9.0, breaking changes → v2.0.0 (MAJOR bump)
git tag -a rundeck-v2/v2.0.0 -m "Release rundeck-v2 v2.0.0
BREAKING CHANGES:
- Restructured client initialization
- Renamed methods for consistency
- Updated error handling
See MIGRATION.md for upgrade guide"
git push origin rundeck-v2/v2.0.0To release both modules with the same version (rare):
# This creates a single release for both modules
git tag -a v2.0.0 -m "Release v2.0.0"
git push origin v2.0.0When to use:
- Major milestones affecting both modules
- Synchronized version numbers for simplicity
Usually better to:
- Use module-specific tags for clarity
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- Rundeck Docs: docs.rundeck.com