From a5f118b987b673878756bb0a23307316cd20bb7b Mon Sep 17 00:00:00 2001 From: Toomas Vahter Date: Mon, 20 May 2024 12:09:12 +0300 Subject: [PATCH] Update release lane (#3212) --- .github/workflows/start-new-release.yml | 26 ++++++++++++++----------- Gemfile.lock | 4 ++-- fastlane/Fastfile | 3 ++- fastlane/Pluginfile | 2 +- 4 files changed, 20 insertions(+), 15 deletions(-) diff --git a/.github/workflows/start-new-release.yml b/.github/workflows/start-new-release.yml index a4398b92f5e..c6b49fbf27c 100644 --- a/.github/workflows/start-new-release.yml +++ b/.github/workflows/start-new-release.yml @@ -13,14 +13,18 @@ jobs: name: Start new release runs-on: macos-14 steps: - - uses: actions/checkout@v4.1.1 - with: - fetch-depth: 0 # to fetch git tags - - uses: ./.github/actions/ruby-cache - - uses: ./.github/actions/xcode-cache - - name: Create Release PR - run: bundle exec fastlane release version:"${{ github.event.inputs.version }}" --verbose - env: - GITHUB_TOKEN: ${{ secrets.DANGER_GITHUB_API_TOKEN }} - MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }} - APPSTORE_API_KEY: ${{ secrets.APPSTORE_API_KEY }} + - name: Install Bot SSH Key + uses: webfactory/ssh-agent@v0.7.0 + with: + ssh-private-key: ${{ secrets.BOT_SSH_PRIVATE_KEY }} + - uses: actions/checkout@v4.1.1 + with: + fetch-depth: 0 # to fetch git tags + - uses: ./.github/actions/ruby-cache + - uses: ./.github/actions/xcode-cache + - name: Create Release PR + run: bundle exec fastlane release version:"${{ github.event.inputs.version }}" --verbose + env: + GITHUB_TOKEN: ${{ secrets.DANGER_GITHUB_API_TOKEN }} + MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }} + APPSTORE_API_KEY: ${{ secrets.APPSTORE_API_KEY }} diff --git a/Gemfile.lock b/Gemfile.lock index a44ce905901..8b1d5b30794 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -199,7 +199,7 @@ GEM fastlane pry fastlane-plugin-sonarcloud_metric_kit (0.2.1) - fastlane-plugin-stream_actions (0.3.28) + fastlane-plugin-stream_actions (0.3.35) xctest_list (= 1.2.1) fastlane-plugin-versioning (0.5.2) ffi (1.16.3) @@ -434,7 +434,7 @@ DEPENDENCIES fastlane-plugin-create_xcframework fastlane-plugin-lizard fastlane-plugin-sonarcloud_metric_kit - fastlane-plugin-stream_actions (= 0.3.28) + fastlane-plugin-stream_actions (= 0.3.35) fastlane-plugin-versioning jazzy json diff --git a/fastlane/Fastfile b/fastlane/Fastfile index f51ae3486f2..2f6227bf084 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -70,9 +70,10 @@ lane :release do |options| File.open(swift_environment_path, 'w') { |f| f.puts(new_content) } # Update sdk sizes - update_img_shields_sdk_sizes + Dir.chdir('fastlane') { update_img_shields_sdk_sizes } end + match_me pod_lint release_ios_sdk( version: options[:version], diff --git a/fastlane/Pluginfile b/fastlane/Pluginfile index ff43d932e48..0822f453ed2 100644 --- a/fastlane/Pluginfile +++ b/fastlane/Pluginfile @@ -5,4 +5,4 @@ gem 'fastlane-plugin-versioning' gem 'fastlane-plugin-create_xcframework' gem 'fastlane-plugin-sonarcloud_metric_kit' -gem 'fastlane-plugin-stream_actions', '0.3.28' +gem 'fastlane-plugin-stream_actions', '0.3.35'