Skip to content

Commit

Permalink
Update Fastlane config and workflows (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
trevor-e authored Mar 8, 2024
1 parent 1f00905 commit f46ad79
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 24 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/ios_emerge_upload_main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,5 @@ jobs:
SIGNING_KEY_PASSWORD: ${{ secrets.IOS_DIST_SIGNING_KEY_PASSWORD }}
SIGNING_KEY_FILE_PATH: signing-cert.p12
EMERGE_API_TOKEN: ${{ secrets.EMERGE_API_KEY }}
BASE_SHA: ${{ github.event.pull_request.base.sha }}
COMMIT_SHA: ${{ github.event.pull_request.head.sha }}
PULL_NUMBER: ${{ github.event.pull_request.number }}
SCHEME: Release
EMERGE_BUILD_TYPE: release
3 changes: 0 additions & 3 deletions .github/workflows/ios_emerge_upload_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,5 @@ jobs:
SIGNING_KEY_PASSWORD: ${{ secrets.IOS_DIST_SIGNING_KEY_PASSWORD }}
SIGNING_KEY_FILE_PATH: signing-cert.p12
EMERGE_API_TOKEN: ${{ secrets.EMERGE_API_KEY }}
BASE_SHA: ${{ github.event.pull_request.base.sha }}
COMMIT_SHA: ${{ github.event.pull_request.head.sha }}
PULL_NUMBER: ${{ github.event.pull_request.number }}
SCHEME: Release
EMERGE_BUILD_TYPE: pull-request
3 changes: 0 additions & 3 deletions .github/workflows/ios_emerge_upload_snapshots.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,6 @@ jobs:
SIGNING_KEY_PASSWORD: ${{ secrets.IOS_DIST_SIGNING_KEY_PASSWORD }}
SIGNING_KEY_FILE_PATH: signing-cert.p12
EMERGE_API_TOKEN: ${{ secrets.EMERGE_API_KEY }}
BASE_SHA: ${{ github.event.pull_request.base.sha }}
COMMIT_SHA: ${{ github.event.pull_request.head.sha }}
PULL_NUMBER: ${{ github.event.pull_request.number }}
SCHEME: Debug
EMERGE_BUILD_TYPE: snapshot
BUNDLE_ID: com.emerge.hn.Hacker-News.snapshots
Expand Down
2 changes: 1 addition & 1 deletion ios/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ GEM
xcodeproj (>= 1.13.0, < 2.0.0)
xcpretty (~> 0.3.0)
xcpretty-travis-formatter (>= 0.0.3)
fastlane-plugin-emerge (0.7.0)
fastlane-plugin-emerge (0.8.0)
faraday (~> 1.1)
gh_inspector (1.1.3)
google-apis-androidpublisher_v3 (0.54.0)
Expand Down
16 changes: 2 additions & 14 deletions ios/fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -141,13 +141,7 @@ platform :ios do
fetch_and_increment_build_number
build_app_for_scheme(build_configuration: ENV['SCHEME'])
upload_app
emerge(
repo_name: ENV['GITHUB_REPOSITORY'],
pr_number: ENV['PULL_NUMBER'],
sha: (ENV.has_key?('COMMIT_SHA') && ENV['COMMIT_SHA'].length > 0) ? ENV['COMMIT_SHA'] : ENV['GITHUB_SHA'],
base_sha: ENV['BASE_SHA'],
tag: ENV['EMERGE_BUILD_TYPE']
)
emerge(tag: ENV['EMERGE_BUILD_TYPE'])

# TODO(telkins)
# sentry_cli(
Expand All @@ -162,12 +156,6 @@ platform :ios do
load_asc_api_key
prepare_signing
build_app_for_scheme(build_configuration: ENV['SCHEME'])
emerge(
repo_name: ENV['GITHUB_REPOSITORY'],
pr_number: ENV['PULL_NUMBER'],
sha: (ENV.has_key?('COMMIT_SHA') && ENV['COMMIT_SHA'].length > 0) ? ENV['COMMIT_SHA'] : ENV['GITHUB_SHA'],
base_sha: ENV['BASE_SHA'],
tag: ENV['EMERGE_BUILD_TYPE']
)
emerge(tag: ENV['EMERGE_BUILD_TYPE'])
end
end

0 comments on commit f46ad79

Please sign in to comment.