4.9 KiB
Release Process
Release Overview
Releases follow structured branch workflow:
- Development work in feature branches
- Feature branches merged to
stagingvia PRs masterbranch serves as release branch- Releases merge accumulated changes from
stagingtomaster
Prerequisites
- Direct repository access (core maintainers only)
- Local development environment configured
- All target changes merged into
stagingbranch
Pre-Release Verification
- Confirm CI Status: Ensure GitHub Actions pass on
staging - Run Local Validation:
make check - Review Recent Changes: Check commits and merged PRs
Release Steps
1. Prepare Staging Branch
git checkout staging
git pull origin staging
2. Update Version Number and CHANGELOG.ms
# Edit HI_VERSION file with new version (no "-dev" suffix too)
# Add line to CHANGELOG.md file with short description
git add HI_VERSION CHANGELOG.md
git commit -m "Bump version number to vX.X.X"
git push origin staging
3. Merge to Master
git checkout master
git pull origin master
git merge staging
git push origin master
After changing to local master, it may be behind origin/master and should defintiely be behing both local staging and origin/staging. That is fine. When pulling in origin/master, it too will be behind staging. That is normal as the release process is all about merging staging into origin/master.
Common Mistakes to Avoid:
- NEVER make version changes directly on master
- NEVER edit files after the merge to master
- All changes on master must come from staging via the merge
4. Create GitHub Release
Using GitHub CLI (preferred for automation):
gh release create vX.X.X --title "vX.X.X" --generate-notes --latest
Or via GitHub web interface:
- Navigate to repository releases page
- Click "Create a new release"
- Tag:
vX.X.X(create new) - Target:
masterbranch - Title: Use tag name
- Description: Use "Generate release notes"
- Settings: Check "Set as latest release"
- Click "Publish Release"
Check GitHub Actions
- Check that ZIP file was successfully built
- Check that Docker image was built.
5. Validate Install URL Works
Make sure that the published ZIP install link works and that it is at least 10MB in size and no more than 100MB in size.
Test the manual instalation ZIP file.
curl -L https://github.com/cassandra/home-information/releases/latest/download/home-information.zip -o home-information.zip
6. Cleanup
For safety, move back to staging branch and get latest tags.
git checkout staging
git fetch --tags
# Bump HI_VERSION file with next anticipatd version and a "-dev" suffix
git add HI_VERSION
git commit -m "Bump version number to vX.X.X-dev"
git push origin staging
This is where the automated release process ends.
Post-Release Tasks (Manual)
Refine Release
- Read and refine the release notes on the github page.
- Attach an image to the release
Validate Install Script Works
Check github actions for completion of Docke rimage building.
Test the single-command installation script (this must be done manually):
DATE=`date '+%Y-%m-%d'`
mkdir ~/testing
cd ~/testing
mv ~/.hi ~/.hi-$DATE
curl -fsSL https://raw.githubusercontent.com/cassandra/home-information/master/install.sh | bash
Best to try this on multiple types of machines.
Post-Release Monitoring
Critical: Monitor the release for the first few hours after publication:
- Check GitHub Issues for user reports
- Monitor GitHub Discussions for problems
If critical issues are discovered, see Rollback Process for immediate response procedures.
Docker Image Cleanup (Periodic)
Every few releases, clean up old Docker images to prevent clutter:
- Go to:
https://github.com/cassandra/home-information/pkgs/container/home-information - Review old versions and delete:
- Versions older than 6 months (except major releases)
- Keep at least 10 recent versions for rollback capability
- Always keep
latestand current stable version
- This helps with storage management and reduces user confusion
Version Bumping Criteria
TBD - Establish guidelines for:
- Major version: Breaking changes
- Minor version: New features (backward compatible)
- Patch version: Bug fixes (backward compatible)
Rollback Procedures
TBD - Document rollback procedures:
- Revert problematic releases
- Communication protocols
- Post-rollback testing
Notes
- Changelog Management: Generated from GitHub's automatic changelog
- Deployment: Releases distributed as downloadable packages
- Quality Assurance: Branch protection enforces tests and code quality
Related Documentation
- Workflow guidelines: Workflow Guidelines
- Rollback Process - Emergency rollback procedures for problematic releases