Skip to content

Commit 4370136

Browse files
authored
Merge branch 'master' into MOB-6918-lastPushPayload-public
2 parents ebb4a79 + b8964cb commit 4370136

File tree

64 files changed

+4148
-168
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+4148
-168
lines changed

.github/workflows/ios-sdk-release.yml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: iOS SDK Release
2+
run-name: ${{ github.actor }} is starting iOS SDK release
3+
4+
on:
5+
workflow_dispatch:
6+
inputs:
7+
version_number:
8+
description: "iOS SDK version"
9+
required: true
10+
branch:
11+
description: "Branch to release (defaults to master)"
12+
required: true
13+
default: "master"
14+
changelog_section:
15+
description: "Changelog version header (e.g. 6.4.17, 6.5.0-beta)"
16+
required: true
17+
set_prerelease:
18+
type: boolean
19+
description: "Is this a prerelease?"
20+
default: false
21+
env:
22+
VERSION: ${{ github.event.inputs.version_number }}
23+
BRANCH: ${{ github.event.inputs.branch }}
24+
CHANGELOG_SECTION: ${{ github.event.inputs.changelog_section }}
25+
OUTPUT_DIR: ./output_dir
26+
GITHUB_TOKEN: ${{ secrets.SDK_RELEASE_TOKEN }}
27+
RELEASE_BRANCH:
28+
SET_PRERELEASE: ${{ github.event.inputs.set_prerelease }}
29+
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
30+
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}
31+
32+
jobs:
33+
ios-sdk-release:
34+
runs-on: macos-latest
35+
36+
steps:
37+
- uses: actions/checkout@v4
38+
- uses: ruby/setup-ruby@v1
39+
with:
40+
ruby-version: "3.2"
41+
bundler-cache: true
42+
- name: Install Cocoapods
43+
run: gem install cocoapods
44+
45+
- name: clean cocaopods cache and lint
46+
run: bundle exec fastlane ios clean_and_lint
47+
48+
- name: create xcframeworks and zip
49+
run: bundle exec fastlane ios build_xcframework output_dir:./output_dir
50+
51+
- name: create and push git tag
52+
run: bundle exec fastlane ios create_git_tag version:$VERSION
53+
54+
- name: create github release and upload assets
55+
run: |
56+
bundle exec fastlane ios create_release version:$VERSION branch:$BRANCH changelog_section:$CHANGELOG_SECTION output_dir:$OUTPUT_DIR github_token:$GITHUB_TOKEN set_prerelease:$SET_PRERELEASE
57+
58+
- name: push pods to trunk
59+
run: bundle exec fastlane ios pod_trunk_push
60+
61+
- name: slack notification
62+
run: bundle exec fastlane ios slack_message version:$VERSION changelog_section:$CHANGELOG_SECTION slack_webhook:$SLACK_WEBHOOK

0 commit comments

Comments
 (0)