3.1 KiB
Release Process for CreamLinux
This document describes the automated release process for CreamLinux, including version management, changelog generation, and asset publishing.
Overview
CreamLinux uses GitHub Actions to automate the release process. The workflow handles:
- Version incrementing (patch, minor, major)
- Changelog generation from commit messages
- Building release artifacts (AppImage, Debian package)
- Publishing these artifacts to GitHub Releases
Prerequisites
To use the release automation, you need:
- Git installed locally
- GitHub CLI installed and authenticated
- Proper GitHub permissions on the repository
Starting a Release
Method 1: Using the npm run release command (Recommended)
The easiest way to trigger a release is using the npm script:
# For a patch release (0.1.0 -> 0.1.1)
npm run release patch
# For a minor release (0.1.0 -> 0.2.0)
npm run release minor
# For a major release (0.1.0 -> 2.0.0)
npm run release major
You can also provide custom release notes:
npm run release minor "Added DLC management feature and improved UI"
If you don't provide custom notes, they will be automatically generated from commit messages since the last release.
Method 2: Manually triggering the workflow in GitHub
You can also manually trigger the workflow from the GitHub Actions tab:
- Go to your repository on GitHub
- Click on the "Actions" tab
- Select the "Release CreamLinux" workflow
- Click "Run workflow"
- Choose the version increment type (patch, minor, major)
- Optionally enter custom release notes
- Click "Run workflow"
Release Process Details
The release process follows these steps:
- Version Calculation: Determines the new version based on the current version and increment type
- File Updates: Updates version numbers in:
package.jsonsrc-tauri/Cargo.tomlsrc-tauri/tauri.conf.json
- Changelog Generation: If no custom notes are provided, generates a changelog from commits
- Git Operations:
- Commits the version changes
- Creates a version tag
- Pushes the changes and tag to the repository
- Release Creation: Creates a GitHub Release with the changelog
- Build Process: Builds the application for Linux
- Asset Upload: Uploads the AppImage and Debian package to the release
Release Artifacts
The following artifacts are published to the GitHub release:
- AppImage (
.AppImage): Portable Linux executable - Debian Package (
.deb): For Debian/Ubuntu-based distributions
Versioning Convention
CreamLinux follows Semantic Versioning:
- Major version: Incompatible API changes
- Minor version: Backwards-compatible functionality
- Patch version: Backwards-compatible bug fixes
Troubleshooting
If you encounter issues with the release process:
- Check GitHub Actions logs: Review the workflow logs for detailed error information
- Verify permissions: Ensure you have write permissions to the repository
- GitHub CLI authentication: Run
gh auth statusto verify authentication
For technical issues with the release workflow, contact the CreamLinux maintainers.