Skip to content

Commit

Permalink
Runs push-pods after make-release (#2025)
Browse files Browse the repository at this point in the history
  • Loading branch information
vegaro authored Nov 4, 2022
1 parent dbc64af commit cac1e55
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
16 changes: 16 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,16 @@ jobs:
command: bundle exec fastlane release
no_output_timeout: 30m

push-pods:
<<: *base-job
steps:
- checkout
- trust-github-key
- run:
name: Deploy new version
command: bundle exec fastlane push_pods
no_output_timeout: 30m

prepare-next-version:
<<: *base-job
steps:
Expand Down Expand Up @@ -720,8 +730,14 @@ workflows:
- hold
<<: *release-branches
- make-release:
xcode_version: '14.1.0'
<<: *release-tags
- push-pods:
# Xcode 14 not supported until https://github.com/CocoaPods/CocoaPods/issues/11558 is fixed.
# This runs as its own job until https://github.com/CocoaPods/CocoaPods/issues/11621 is fixed.
xcode_version: '13.4.1'
requires:
- make-release
<<: *release-tags
- docs-deploy:
xcode_version: '14.1.0'
Expand Down
10 changes: 8 additions & 2 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -237,15 +237,21 @@ platform :ios do
)
end

desc "Release to CocoaPods, create Carthage archive, export XCFramework, and create GitHub release"
desc "Create Carthage archive, export XCFramework, and create GitHub release"
lane :release do |options|
version_number = current_version_number
push_pods
# making it its own lane until https://github.com/CocoaPods/CocoaPods/issues/11621 is fixed.
# push_pods
carthage_archive
export_xcframework
github_release(version: version_number)
end

desc "Release to CocoaPods"
lane :push_pods do |options|
push_pods
end

desc "Tag current branch with current version number"
lane :tag_current_branch do |options|
version_number = current_version_number
Expand Down

0 comments on commit cac1e55

Please sign in to comment.