Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
b0b372b
Fix publish
enotniy Aug 28, 2025
4ce2155
Merge pull request #17 from mindbox-cloud/kitselyuk/fix-publish
enotniy Aug 28, 2025
cf0b113
Fix publish
enotniy Aug 28, 2025
594b95a
Remove scripts
enotniy Aug 28, 2025
67eedf9
WMSDK-532: Prepare for submodule
enotniy Sep 22, 2025
12dff37
Merge pull request #18 from mindbox-cloud/feature/WMSDK-532
enotniy Sep 22, 2025
b33fc78
WMSDK-533: Add test for MindboxUtils
enotniy Sep 29, 2025
6357a58
WMSDK-533: Add kotlinx.coroutines.test dependency
enotniy Sep 30, 2025
6d9ff7a
Merge pull request #19 from mindbox-cloud/feature/WMSDK-533
enotniy Sep 30, 2025
afddd2b
WMSDK-533: Add Package.swift for local develop
enotniy Sep 30, 2025
c94c56a
WMSDK-533: addassembleMindboxCommonReleaseXCFramework
enotniy Oct 1, 2025
c741b51
Merge pull request #20 from mindbox-cloud/feature/WMSDK-533
enotniy Oct 1, 2025
ca7ce21
WMSDK-545: Change publish version
enotniy Oct 2, 2025
29253c3
WMSDK-545: Add sdk version stub
enotniy Oct 2, 2025
ec6b136
Merge pull request #21 from mindbox-cloud/feature/WMSDK-545
enotniy Oct 2, 2025
b31e574
WMSDK-0000: publish to maven central
Oct 9, 2025
9e8c470
change_publication_to_maven_central_portal
sergeysozinov Oct 9, 2025
7b31d9c
Update podspec after release 2.14.2 for local builds
justSmK Oct 9, 2025
1f24aba
WMSDK-547 Added manual release branch workflow
Oct 29, 2025
a251f58
WMSDK-547 Updated bump version script
Oct 29, 2025
4a101a3
WMSDK-547 Update publish
Oct 29, 2025
663708c
WMSDK-547: Adds merge job to workflow
Oct 29, 2025
61fa5e2
WMSDK-547 Fix PR
Oct 30, 2025
e45e4fe
WMSDK-547 Fix PR
Nov 1, 2025
b418be6
Merge pull request #24 from mindbox-cloud/feature/WMSDK-547-CI-CD
Vailence Nov 1, 2025
6718498
WMSDK-554: Bump kotlin to 2.2.21
enotniy Nov 11, 2025
eb48474
Merge pull request #25 from mindbox-cloud/feature/WMSDK-554
sergeysozinov Nov 12, 2025
4a0d93c
Bump Common SDK version to 2.14.4
github-actions[bot] Nov 13, 2025
09ad390
WMSDK-0000: ci: switch GitHub Actions workflow from macos-latest to m…
justSmK Nov 18, 2025
38f647d
Merge pull request #27 from mindbox-cloud/update-CI-CD-on-macos-26
AndreyEmtsov Nov 19, 2025
6f8b447
Merge branch 'develop' into release/2.14.4
Nov 19, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
88 changes: 67 additions & 21 deletions .github/bump_versions_in_release_branch.sh
Original file line number Diff line number Diff line change
@@ -1,45 +1,91 @@
#!/bin/bash
set -e

# Check if the parameter is provided
# === Validate input ===
if [ $# -eq 0 ]; then
echo "Please provide the release version number as a parameter."
exit 1
fi

# Check if the version number matches the semver format
if ! [[ $1 =~ ^[0-9]+\.[0-9]+\.[0-9]+(-rc)?$ ]]; then
echo "The release version number does not match the semver format (X.Y.Z or X.Y.Z-rc)."
exit 1
fi

# Check the current Git branch
version=$1
current_branch=$(git symbolic-ref --short HEAD)
echo "Currently on branch: $current_branch"
echo "Currently on branch: $current_branch"

if [[ ! $current_branch =~ ^(release|support)/[0-9]+\.[0-9]+\.[0-9]+(-rc)?$ ]]; then
echo "The current Git branch ($current_branch) is not in the format 'release/X.Y.Z', 'release/X.Y.Z-rc', 'support/X.Y.Z' or 'support/X.Y.Z-rc'."
exit 1
echo "The current Git branch ($current_branch) is not in the correct format."
exit 1
fi

version=$1
# === Update gradle.properties ===
properties_file="gradle.properties"
if [ ! -f "$properties_file" ]; then
echo "❌ $properties_file not found."
exit 1
fi

# Show the current directory and its files
echo "Current directory: $(pwd)"
echo "Files in the current directory:"
ls -l
current_version=$(grep -E '^SDK_VERSION_NAME=' "$properties_file" | cut -d'=' -f2)
echo "→ Current SDK_VERSION_NAME: ${current_version:-<empty>}"
echo "→ Updating SDK_VERSION_NAME to $version"

# Add changelog to the index and create a commit
properties_file="gradle.properties"
current_version=$(grep -E '^KMP_SDK_VERSION_NAME=' gradle.properties | cut -d'=' -f2)
sed -i "s/^KMP_SDK_VERSION_NAME=.*/KMP_SDK_VERSION_NAME=$version/" $properties_file
if [[ "$OSTYPE" == "darwin"* ]]; then
sed -i '' "s/^SDK_VERSION_NAME=.*/SDK_VERSION_NAME=$version/" "$properties_file"
else
sed -i "s/^SDK_VERSION_NAME=.*/SDK_VERSION_NAME=$version/" "$properties_file"
fi

grep "^SDK_VERSION_NAME=" "$properties_file"
git add "$properties_file"

# === Update MindboxCommon.podspec (only s.version) ===
podspec_file="MindboxCommon.podspec"
if [ -f "$podspec_file" ]; then
echo "→ Updating $podspec_file version to $version"

echo "Bump Common SDK version from $current_version to $version."
if [[ "$OSTYPE" == "darwin"* ]]; then
sed -i '' -E "s|^[[:space:]]*s\.version[[:space:]]*=.*| s.version = '$version'|" "$podspec_file"
else
sed -i -E "s|^[[:space:]]*s\.version[[:space:]]*=.*| s.version = '$version'|" "$podspec_file"
fi

git add $properties_file
git commit -m "Bump Common SDK version to $version"
grep "s.version" "$podspec_file"
git add "$podspec_file"
else
echo "⚠️ $podspec_file not found, skipping podspec update."
fi

# === Commit changes ===
echo ""
git commit -m "Bump Common SDK version to $version" || echo "No changes to commit"

# === Validation ===
echo "→ Validating version bump..."
new_version=$(grep -E '^SDK_VERSION_NAME=' "$properties_file" | cut -d'=' -f2)

if [ "$new_version" != "$version" ]; then
echo "❌ Validation failed: expected SDK_VERSION_NAME=$version but found $new_version"
exit 1
fi

echo "Pushing changes to branch: $current_branch"
if ! git push origin $current_branch; then
echo "Failed to push changes to the origin $current_branch"
if [ -f "$podspec_file" ]; then
podspec_version=$(grep -E "^[[:space:]]*s\.version" "$podspec_file" | grep -Eo "[0-9]+\.[0-9]+\.[0-9]+(-rc)?")
if [ "$podspec_version" != "$version" ]; then
echo "❌ Validation failed: expected s.version=$version but found $podspec_version"
exit 1
fi
fi

echo "✅ Validation passed: version successfully updated to $version"

# === Push changes ===
echo "→ Pushing changes to branch: $current_branch"
if ! git push origin "$current_branch"; then
echo "❌ Failed to push changes to origin/$current_branch"
exit 1
fi

echo "✅ bump_versions_in_release_branch.sh completed successfully."
2 changes: 1 addition & 1 deletion .github/git-release-ci.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
set -e

version=$(grep '^KMP_SDK_VERSION_NAME=' gradle.properties | cut -d '=' -f2)
version=$(awk -F= '/^[[:space:]]*SDK_VERSION_NAME[[:space:]]*=/ { val=$2; sub(/#.*/,"",val); gsub(/[[:space:]]/,"",val); print val; exit }' gradle.properties)

is_beta=false
if [[ $version == *"rc"* ]]; then
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint_unitTests_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:

jobs:
checks:
runs-on: macos-latest
runs-on: macos-26
steps:
- uses: actions/checkout@v3
with:
Expand Down
32 changes: 4 additions & 28 deletions .github/workflows/manual-prepare_release_branch.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "Manual Release Prep: Branch & Version Bump"
name: "1. Release branch manual preparation"

on:
workflow_dispatch:
Expand All @@ -23,7 +23,7 @@ jobs:
- name: Check version matches semver or semver-rc
run: |
VER="${{ github.event.inputs.release_version }}"
echo " release_version = $VER"
echo " release_version = $VER"
if ! [[ "$VER" =~ ^[0-9]+\.[0-9]+\.[0-9]+(-rc)?$ ]]; then
echo "❌ release_version must be X.Y.Z or X.Y.Z-rc"
exit 1
Expand Down Expand Up @@ -92,34 +92,10 @@ jobs:
run: |
git push origin "${{ steps.bump.outputs.release_branch }}"

check_sdk_version:
name: Check SDK Version
runs-on: ubuntu-latest
needs: bump_and_branch
steps:
- name: Checkout the release branch
uses: actions/checkout@v4
with:
ref: ${{ needs.bump_and_branch.outputs.release_branch }}
fetch-depth: 0

- name: Pull latest changes
run: git pull

- name: Validate sdkVersion
run: |
EXPECT="${{ github.event.inputs.release_version }}"
SDK_VERSION=$(grep -E '^KMP_SDK_VERSION_NAME=' gradle.properties | cut -d'=' -f2)
echo "→ Found in code: $SDK_VERSION, expected: $EXPECT"
if [ "$SDK_VERSION" != "$EXPECT" ]; then
echo "❌ SDK version does not match!"
exit 1
fi

create_pull_request:
name: Create Pull Request
runs-on: ubuntu-latest
needs: [bump_and_branch, check_sdk_version]
needs: [bump_and_branch]
steps:
- name: Create PR via GitHub CLI
env:
Expand All @@ -134,4 +110,4 @@ jobs:
--base "$DST" \
--head "$SRC" \
--title "Release ${{ github.event.inputs.release_version }}" \
--body "Updates the release version to ${{ github.event.inputs.release_version }}. Automated PR: merge $SRC into $DST"
--body "Updates the release version to ${{ github.event.inputs.release_version }}. Automated PR: merge $SRC into $DST"
93 changes: 0 additions & 93 deletions .github/workflows/prepare_release_branch.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/publish-from-master-or-support.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Common SDK publish from master or support branch
name: 2. Auto Github Release

on:
pull_request:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/publish-manual.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Common SDK publish RC manual
name: 2. Manual Github Release


on:
Expand All @@ -10,8 +10,8 @@ jobs:
steps:
- name: Check if branch matches pattern
run: |
if ! echo "${{ github.ref_name }}" | grep -q "release/.*-rc"; then
echo "Branch name must match pattern 'release/*-rc' (e.g. release/2.13.2-rc)"
if ! echo "${{ github.ref_name }}" | grep -q "release/"; then
echo "Branch name must match pattern 'release' (e.g. release/2.13.2)"
exit 1
fi

Expand Down
Loading
Loading