-
-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Tim Bert <[email protected]>
- Loading branch information
Showing
1 changed file
with
1 addition
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -168,65 +168,10 @@ platform :ios do | |
disable_package_automatic_updates: true | ||
) | ||
|
||
upload_to_testflight( | ||
skip_submission: options[:isfeaturebuild], | ||
distribute_external: !options[:isfeaturebuild], | ||
notify_external_testers: !options[:isfeaturebuild], | ||
changelog: changelog, | ||
groups: ['Beta Testers'] | ||
) | ||
upload_symbols_to_crashlytics(gsp_path: "openHAB/GoogleService-Info.plist") | ||
|
||
clean_build_artifacts | ||
|
||
# commit to git the changes from bumping version number | ||
commit_version_bump( | ||
message: "committed version bump: #{version} (#{build_number})", | ||
xcodeproj: 'openHAB.xcodeproj', | ||
include: %w[CHANGELOG.md] | ||
) | ||
if is_ci? | ||
sh 'git commit --amend --no-edit --signoff --author="openhab-bot <[email protected]>"' | ||
else | ||
sh 'git commit --amend --no-edit --signoff' | ||
end | ||
|
||
# push bump commit | ||
ensure_git_status_clean | ||
push_to_git_remote | ||
|
||
# tag if not a feature build | ||
if !options[:isfeaturebuild] | ||
#sh 'git checkout main && git merge develop --no-ff' | ||
add_git_tag( | ||
message: changelog, | ||
tag: version.to_s | ||
) | ||
push_to_git_remote(tags: true) | ||
#sh 'git checkout develop' | ||
|
||
if is_ci? | ||
set_github_release( | ||
api_bearer: ENV['FASTLANE_GITHUB_RELEASE_API_BEARER'], | ||
repository_name: 'openhab/openhab-ios', | ||
name: "#{type.capitalize} version #{version}", | ||
tag_name: version.to_s, | ||
description: changelog, | ||
commitish: 'develop' | ||
# upload_assets: no assets supported | ||
) | ||
else | ||
set_github_release( | ||
api_token: ENV['GITHUB_API_TOKEN'], | ||
repository_name: 'openhab/openhab-ios', | ||
name: "#{type.capitalize} version #{version}", | ||
tag_name: version.to_s, | ||
description: changelog, | ||
commitish: 'develop' | ||
# upload_assets: no assets supported | ||
) | ||
end | ||
|
||
end | ||
|
||
end | ||
|
||
|