diff --git a/.github/workflows/deploy_app_store.yml b/.github/workflows/deploy_app_store.yml index 3fc7756b..526e426d 100644 --- a/.github/workflows/deploy_app_store.yml +++ b/.github/workflows/deploy_app_store.yml @@ -4,6 +4,8 @@ name: Deploy Build To App Store ### SSH_PRIVATE_KEY for Match Repo ### MATCH_PASS ### APPSTORE_CONNECT_API_KEY +### API_KEY_ID +### ISSUER_ID on: push: @@ -72,6 +74,9 @@ jobs: run: bundle exec fastlane buildAndUploadToAppStore env: APPSTORE_CONNECT_API_KEY: ${{ secrets.APPSTORE_CONNECT_API_KEY }} + API_KEY_ID: ${{ secrets.API_KEY_ID }} + ISSUER_ID: ${{ secrets.ISSUER_ID }} + BUMP_APP_STORE_BUILD_NUMBER: "true" - name: Upload Artifacts uses: actions/upload-artifact@v3 diff --git a/fastlane/Managers/EnvironmentManager.rb b/fastlane/Managers/EnvironmentManager.rb deleted file mode 100644 index 6ad2e844..00000000 --- a/fastlane/Managers/EnvironmentManager.rb +++ /dev/null @@ -1,26 +0,0 @@ -# frozen_string_literal: true - -class EnvironmentManager - def initialize(fastlane:, is_github_actions:, is_bitrise:, build_path:) - @fastlane = fastlane - @is_github_actions = is_github_actions - @is_bitrise = is_bitrise - @build_path = build_path - end - - def save_build_context_to_ci(version_number:) - ipa_path = Fastlane::Actions.lane_context[Fastlane::Actions::SharedValues::IPA_OUTPUT_PATH] - dsym_path = Fastlane::Actions.lane_context[Fastlane::Actions::SharedValues::DSYM_OUTPUT_PATH] - build_number = Fastlane::Actions.lane_context[Fastlane::Actions::SharedValues::BUILD_NUMBER] - - if @is_github_actions - @fastlane.sh("echo IPA_OUTPUT_PATH=#{ipa_path} >> $GITHUB_ENV") - @fastlane.sh("echo DSYM_OUTPUT_PATH=#{dsym_path} >> $GITHUB_ENV") - @fastlane.sh("echo BUILD_NUMBER=#{build_number} >> $GITHUB_ENV") - @fastlane.sh("echo VERSION_NUMBER=#{version_number} >> $GITHUB_ENV") - end - if @is_bitrise - @fastlane.sh("envman add --key BUILD_PATH --value '#{@build_path}'") - end - end -end