From dc6b73d7da39c115baaad471810cbc9a8d5f4bfd Mon Sep 17 00:00:00 2001 From: Moris Gateno Date: Sun, 16 Jun 2024 11:27:20 +0300 Subject: [PATCH] . --- .github/bash_scripts/pre_release.sh | 2 +- .github/bash_scripts/release.sh | 9 ++++----- .github/workflows/release-production-workflow.yml | 2 +- RELEASENOTES.md | 0 4 files changed, 6 insertions(+), 7 deletions(-) create mode 100644 RELEASENOTES.md diff --git a/.github/bash_scripts/pre_release.sh b/.github/bash_scripts/pre_release.sh index 79e1cb3..4c3197d 100755 --- a/.github/bash_scripts/pre_release.sh +++ b/.github/bash_scripts/pre_release.sh @@ -10,7 +10,7 @@ mv AppsFlyerAdobeAEPExtension.podspec AppsFlyerAdobeAEPExtension-qa.podspec sed -r -i '' "s/(.*AppsFlyerLib.*)([0-9]+\.[0-9]+\.[0-9]+)(.*)/\1$appsflyerLibVersion\3/g" Package.swift -sed -r -i '' "s/(.*pod \'AppsFlyerAdobeAEPExtension)\'(.*\'[0-9]+\.[0-9]+\.[0-9]+\')/\1\',\'$rcVersion\'/g" AdobeAEPSample/Podfile +sed -r -i '' "s/(.*pod \'AppsFlyerAdobeAEPExtension)\'(.*\'[0-9]+\.[0-9]+\.[0-9]+\')/\1-qa\',\'$rcVersion\'/g" AdobeAEPSample/Podfile sed -r -i '' "s/(- iOS AppsFlyer SDK .*)([0-9]+\.[0-9]+\\.[0-9]+)(.*)/\1$appsflyerLibVersion\3/g" README.md diff --git a/.github/bash_scripts/release.sh b/.github/bash_scripts/release.sh index 9944fa2..69a20c1 100644 --- a/.github/bash_scripts/release.sh +++ b/.github/bash_scripts/release.sh @@ -2,12 +2,11 @@ releaseVersion=$1 -sed -r -i '' "s/version_plugin = \'[0-9]+\.[0-9]+\.[0-9]+.*\'/version_plugin = \'$releaseVersion\'/g" segment-appsflyer-ios-qa.podspec -sed -i '' "s/s.name = \"segment-appsflyer-ios-qa\"/s.name = \"segment-appsflyer-ios\"/g" segment-appsflyer-ios-qa.podspec -mv segment-appsflyer-ios-qa.podspec segment-appsflyer-ios.podspec +sed -r -i '' "s/version_plugin = \'[0-9]+\.[0-9]+\.[0-9]+.*\'/version_plugin = \'$releaseVersion\'/g" AppsFlyerAdobeAEPExtension-qa.podspec +sed -i '' "s/s.name = \'AppsFlyerAdobeAEPExtension-qa\'/s.name = \'AppsFlyerAdobeAEPExtension\'/g" AppsFlyerAdobeAEPExtension-qa.podspec +mv AppsFlyerAdobeAEPExtension-qa.podspec AppsFlyerAdobeAEPExtension.podspec -sed -r -i '' "s/(.*pod \'segment-appsflyer-ios)-qa\'(.*)/\1\',\'$releaseVersion\'/g" examples/SwiftPodsSample/Podfile -sed -r -i '' "s/(.*pod \'segment-appsflyer-ios)-qa\'(.*)/\1\',\'$releaseVersion\'/g" examples/ObjcPodsSample/Podfile +sed -r -i '' "s/(.*pod \'AppsFlyerAdobeAEPExtension)-qa\'(.*)/\1\',\'$releaseVersion\'/g" AdobeAEPSample/Podfile sed -i '' 's/^/* /' "releasenotes.$releaseVersion" NEW_VERSION_RELEASE_NOTES=$(cat "releasenotes.$releaseVersion") diff --git a/.github/workflows/release-production-workflow.yml b/.github/workflows/release-production-workflow.yml index 8faa53e..68aedb4 100644 --- a/.github/workflows/release-production-workflow.yml +++ b/.github/workflows/release-production-workflow.yml @@ -51,7 +51,7 @@ jobs: - name: Push to COCOAPODS run: | pod trunk me - pod trunk push segment-appsflyer-ios.podspec + pod trunk push AppsFlyerAdobeAEPExtension.podspec - name: Notify with SLack uses: slackapi/slack-github-action@v1.23.0 with: diff --git a/RELEASENOTES.md b/RELEASENOTES.md new file mode 100644 index 0000000..e69de29