File tree Expand file tree Collapse file tree 2 files changed +49
-3
lines changed Expand file tree Collapse file tree 2 files changed +49
-3
lines changed Original file line number Diff line number Diff line change
1
+ name : " Publish new release"
2
+
3
+ on :
4
+ pull_request :
5
+ branches :
6
+ - main
7
+ types :
8
+ - closed
9
+
10
+ workflow_dispatch :
11
+ inputs :
12
+ version :
13
+ description : ' Provide release version'
14
+ type : string
15
+ required : true
16
+
17
+ jobs :
18
+ release :
19
+ name : Publish new release
20
+ runs-on : macos-13
21
+ if : github.event_name == 'workflow_dispatch' || startsWith(github.event.pull_request.head.ref, 'release/')
22
+ steps :
23
+ - name : Install Bot SSH Key
24
+ uses :
webfactory/[email protected]
25
+ with :
26
+ ssh-private-key : ${{ secrets.BOT_SSH_PRIVATE_KEY }}
27
+
28
+ - name : Extract version from branch name (for release branches)
29
+ run : |
30
+ if [[ "${{ github.event.inputs.version }}" != "" ]]; then
31
+ echo "RELEASE_VERSION=${{ github.event.inputs.version }}" >> $GITHUB_ENV
32
+ else
33
+ BRANCH_NAME="${{ github.event.pull_request.head.ref }}"
34
+ VERSION=${BRANCH_NAME#release/}
35
+ echo "RELEASE_VERSION=$VERSION" >> $GITHUB_ENV
36
+ fi
37
+ - uses : ./.github/actions/ruby-cache
38
+ - name : " Fastlane - Publish Release"
39
+ env :
40
+ GITHUB_TOKEN : ${{ secrets.CI_BOT_GITHUB_TOKEN }}
41
+ COCOAPODS_TRUNK_TOKEN : ${{ secrets.COCOAPODS_TRUNK_TOKEN }}
42
+ MATCH_PASSWORD : ${{ secrets.MATCH_PASSWORD }}
43
+ APPSTORE_API_KEY : ${{ secrets.APPSTORE_API_KEY }}
44
+ run : bundle exec fastlane publish_release version:${{ env.RELEASE_VERSION }} --verbose
Original file line number Diff line number Diff line change @@ -69,19 +69,21 @@ lane :release do |options|
69
69
end
70
70
71
71
pod_lint
72
- version_number = release_ios_sdk (
72
+ release_ios_sdk (
73
73
version : options [ :version ] ,
74
74
bump_type : options [ :type ] ,
75
75
sdk_names : sdk_names ,
76
76
podspec_names : [ 'StreamChatSwiftUI' , 'StreamChatSwiftUI-XCFramework' ] ,
77
77
github_repo : github_repo ,
78
- extra_changes : extra_changes
78
+ extra_changes : extra_changes ,
79
+ create_pull_request : true
79
80
)
80
- publish_release ( version : version_number )
81
81
end
82
82
83
83
desc "Publish a new release to GitHub and CocoaPods"
84
84
lane :publish_release do |options |
85
+ xcversion ( version : '15.0.1' )
86
+
85
87
clean_products
86
88
build_xcframeworks
87
89
compress_frameworks
You can’t perform that action at this time.
0 commit comments