diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7276864..2df83a6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -95,15 +95,21 @@ jobs: - name: Stash changes run: git reset --hard + - name: Get changelog + id: changelog + run: echo "commit_message=$(git log -1 --pretty=%B)" >> $GITHUB_ENV + - name: Update version in pubspec.yaml run: | # Update the version in pubspec.yaml sed -i "s/^version: .*/version: ${{ env.new_version }}/" pubspec.yaml - sed -i "s/^ s.version.*/ s.version = '${{ env.new_version }}'/g" ios/hypersdkflutter.podspec + sed -i "s/s.version[ ]*=[ ]*'.*'/s.version = '${{ env.new_version }}'/g" ios/hypersdkflutter.podspec + sed -i "1s/^/# ${{ env.new_version }}\n* ${{ env.commit_message }}\n\n/" CHANGELOG.md # Commit the updated pubspec.yaml file git add pubspec.yaml git add ios/hypersdkflutter.podspec + git add CHANGELOG.md git commit -m "chore: bump version to ${{ env.new_version }}" shell: bash diff --git a/ios/hypersdkflutter.podspec b/ios/hypersdkflutter.podspec index 49f62ec..6ca814f 100644 --- a/ios/hypersdkflutter.podspec +++ b/ios/hypersdkflutter.podspec @@ -23,7 +23,7 @@ puts ("HyperSDK HyperSDK Version Version: #{hyper_sdk_version}") Pod::Spec.new do |s| s.name = 'hypersdkflutter' - s.version = '4.0.22' + s.version = '4.0.23' s.summary = 'Flutter plugin for Juspay SDK' s.description = <<-DESC Flutter plugin for juspay SDK.