From 4e9586d108412a656732fd891a51fed3c79d32ca Mon Sep 17 00:00:00 2001 From: Moris Gateno Date: Mon, 10 Jun 2024 11:22:00 +0300 Subject: [PATCH] add change yo workflows --- .github/bash_scripts/pre_release.sh | 1 + .github/workflows/release-QA-workflow.yml | 15 ++++++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/bash_scripts/pre_release.sh b/.github/bash_scripts/pre_release.sh index 47e43ff..a482bb1 100644 --- a/.github/bash_scripts/pre_release.sh +++ b/.github/bash_scripts/pre_release.sh @@ -6,6 +6,7 @@ rcVersion=$2 sed -i '' "s/version_appsflyerLib = \'.*\'/version_appsflyerLib = \'$appsflyerLibVersion\'/g" segment-appsflyer-ios.podspec sed -i '' "s/version_plugin = \'.*\'/version_plugin = \'$rcVersion\'/g" segment-appsflyer-ios.podspec sed -i '' "s/s.name = \"segment-appsflyer-ios\"/s.name = \"segment-appsflyer-ios-qa\"/g" segment-appsflyer-ios.podspec +mv segment-appsflyer-ios.podspec segment-appsflyer-ios-qa.podspec sed -r -i '' "s/(.*AppsFlyerLib.*)([0-9]+\.[0-9]+\.[0-9]+)(.*)/\1$appsflyerLibVersion\3/g" Package.swift diff --git a/.github/workflows/release-QA-workflow.yml b/.github/workflows/release-QA-workflow.yml index c1dfe27..c9dfc03 100644 --- a/.github/workflows/release-QA-workflow.yml +++ b/.github/workflows/release-QA-workflow.yml @@ -25,7 +25,20 @@ jobs: if: needs.Check-If-ReleaseNotes-Pushed.outputs.answer == 'false' uses: ./.github/workflows/unit-tests-workflow.yml - Deploy-Locally-To-QA: + Prepere-To-QA: needs: [Run-Unit-Tests,Check-If-ReleaseNotes-Pushed] if: needs.Check-If-ReleaseNotes-Pushed.outputs.answer == 'false' uses: ./.github/workflows/prepare-for-QA-release.yml + + Release-To-QA: + needs: [Run-Unit-Tests,Check-If-ReleaseNotes-Pushed,Prepere-To-QA] + if: needs.Check-If-ReleaseNotes-Pushed.outputs.answer == 'false' + steps: + - name: Install Cocoapods + run: gem install cocoapods + - name: Push to COCOAPODS + uses: michaelhenry/deploy-to-cocoapods-github-action@1.0.10 + env: + COCOAPODS_TRUNK_TOKEN: ${{ secrets.CI_COCOAPODS_TOKEN }} + +