mirror of
https://github.com/fromchat-messenger/app.git
synced 2026-09-22 19:15:05 +03:00
Simplify release CI: build only, inline workflow steps.
Remove test/smoke jobs and ci-*.sh scripts; embed compile, packaging, and version setup directly in release.yml. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -11,4 +11,14 @@ runs:
|
||||
steps:
|
||||
- name: Set version
|
||||
shell: bash
|
||||
run: bash scripts/ci-set-version.sh "${{ inputs.version }}"
|
||||
run: |
|
||||
VERSION="${{ inputs.version }}"
|
||||
VERSION_CODE="$(printf '%s' "$VERSION" | sed 's/[^0-9]//g')"
|
||||
if [[ -z "$VERSION_CODE" ]]; then
|
||||
VERSION_CODE=1
|
||||
fi
|
||||
GRADLE_FILE="build.gradle.kts"
|
||||
sed -i.bak "s/extra\\[\"versionName\"\\] = \"[^\"]*\"/extra[\"versionName\"] = \"$VERSION\"/" "$GRADLE_FILE"
|
||||
sed -i.bak "s/extra\\[\"versionCode\"\\] = [0-9]*/extra[\"versionCode\"] = $VERSION_CODE/" "$GRADLE_FILE"
|
||||
rm -f "$GRADLE_FILE.bak"
|
||||
echo "versionName=$VERSION versionCode=$VERSION_CODE"
|
||||
|
||||
Reference in New Issue
Block a user