ci: add release workflow with multi-platform builds#64
Merged
Conversation
Add a GitHub Actions workflow triggered by tag push (v*) that builds all distributable artifacts and creates a GitHub Release with auto-generated changelog. Build matrix: - CLI native binaries (macOS arm64/x64, Linux x64/arm64, Windows x64/arm64) - Android APK with optional release signing via secrets - Desktop packages (macOS .dmg, Linux .deb x64/arm64, Windows .msi x64/arm64) - Web (WasmJs) distribution zip Also add environment-based Android release signing config to app/android/build.gradle.kts, reading keystore from env vars so local dev builds are unaffected. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Replace hardcoded version constants with a build-time generated value from the `kdown.version` Gradle property. The release workflow passes the version extracted from the git tag via `-Pkdown.version=X.Y.Z`. - Add `kdown.version` property to gradle.properties (default: 0.0.1-dev) - Generate `KDownBuildVersion.kt` in library:api at build time - Wire KDownVersion.DEFAULT and KDown.VERSION to the generated constant - Pass `-Pkdown.version` in all release workflow Gradle commands - Use kdown.version for Android versionName Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Generate KDOWN_BUILD_REVISION from `git rev-parse --short HEAD` at build time and expose it as KDownVersion.REVISION. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Replace all KDown.VERSION usages with KDownVersion.DEFAULT (and KDownVersion.REVISION in CLI output) and remove the companion object constant. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Contributor
Enable isMinifyEnabled and isShrinkResources for the release build type with ProGuard rules for kotlinx-serialization, Ktor, and Netty. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Move ProGuard rules to root proguard-rules.pro shared by Android and Desktop builds - Add logback-classic to CLI and Desktop for Ktor server logging - Add log4j-api as runtimeOnly for Desktop ProGuard hierarchy resolution - Enable ProGuard with optimization for Desktop release builds - Derive Desktop packageVersion from kdown.version Gradle property - Use GITHUB_RUN_NUMBER for Android versionCode (defaults to 1 locally) - Strip unused files from Android APK (kotlin builtins, Jansi natives, Netty native-image metadata, version files, LICENSE files) - Add iOS Config.xcconfig for version management Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
v*tag push that builds CLI native binaries (6 platforms), Android APK, Desktop packages (5 platforms), and Web distribution, then creates a GitHub Release with all artifacts and auto-generated changelogBuild matrix
Required secrets (for signed Android APK)
ANDROID_KEYSTORE_BASE64ANDROID_KEYSTORE_PASSWORDANDROID_KEY_ALIASANDROID_KEY_PASSWORDTest plan
v0.0.1-testto trigger the workflow🤖 Generated with Claude Code