4.7 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
- Optional:
actfor local testing (https://github.com/nektos/act)
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.
Advanced Options
The release script supports several advanced options:
Dry Run
Run the release process without actually creating a release:
npm run release patch --dry-run
This will perform all the version incrementing and workflow steps but won't create the actual GitHub release.
Local Testing
Test the workflow locally before running it on GitHub:
npm run release minor --local
This requires the act tool to be installed (https://github.com/nektos/act) and runs the workflow locally to check for errors.
You can combine options:
npm run release patch --local --dry-run
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
- Check the "dry run" option if you want to test without creating a release
- 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
- Build Process: Builds the application for Linux (and potentially other platforms)
- Release Creation: Creates a GitHub Release with the changelog after all builds are complete
- Asset Upload: Uploads the AppImage and Debian package to the release
Optimizations
The release workflow includes several optimizations:
- Caching: Uses Rust and npm caches to speed up build times
- Parallel Builds: Builds for different platforms in parallel
- Artifact Management: Properly manages build artifacts between jobs
- Error Handling: Improves error detection and reporting
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
- Use local testing: Run with
--localflag to test locally before triggering on GitHub - Try dry run mode: Use
--dry-runto test the process without creating an actual release - Verify permissions: Ensure you have write permissions to the repository
- GitHub CLI authentication: Run
gh auth statusto verify authentication
Common errors:
- "act not found": Install the
acttool for local testing - Upload errors: Check if the build produced the expected artifacts
- Permission errors: Check GitHub permissions and token access
For technical issues with the release workflow, contact the CreamLinux maintainers.