Skip to content

Commit 8193809

Browse files
committed
add prelease
1 parent 0b783b4 commit 8193809

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ on:
99
required: true
1010
changelog_section:
1111
description: "Changelog version header (e.g. 6.4.17, 6.5.0-beta)"
12+
required: true
13+
set_prerelease:
14+
type: boolean
15+
description: "Is this a prerelease?"
16+
default: false
1217

1318
jobs:
1419
ios-sdk-release:
@@ -34,7 +39,7 @@ jobs:
3439

3540
- name: create github release and upload assets
3641
run: |
37-
bundle exec fastlane ios create_release version:${{ github.event.inputs.version_number }} changelog_section:${{ github.event.inputs.changelog_section }} output_dir:./output_dir github_token:${{ secrets.SDK_RELEASE_TOKEN }}
42+
bundle exec fastlane ios create_release version:${{ github.event.inputs.version_number }} changelog_section:${{ github.event.inputs.changelog_section }} output_dir:./output_dir github_token:${{ secrets.SDK_RELEASE_TOKEN }} set_prerelease: ${{ github.event.inputs.set_prerelease }}
3843
3944
- name: push pods to trunk
4045
run: bundle exec fastlane ios pod_trunk_push

fastlane/Fastfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ platform :ios do
8383
changelog_section = options[:changelog_section]
8484
output_dir = options[:output_dir]
8585
github_token = options[:github_token]
86+
set_prerelease = options[:set_prerelease]
8687

8788
add_git_tag(tag: "#{version}")
8889

@@ -98,7 +99,8 @@ platform :ios do
9899
tag_name: "#{version}",
99100
description: version_changelog,
100101
commitish: "master",
101-
upload_assets: ["./#{output_dir}/IterableSDK.xcframework.zip", "./#{output_dir}/IterableAppExtensions.xcframework.zip"]
102+
upload_assets: ["./#{output_dir}/IterableSDK.xcframework.zip", "./#{output_dir}/IterableAppExtensions.xcframework.zip"],
103+
is_prerelease: set_prerelease
102104
)
103105
end
104106

0 commit comments

Comments
 (0)