Skip to content
Merged
Show file tree
Hide file tree
Changes from 9 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/testflight.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ permissions:
contents: read

jobs:
beta:
testflight:
runs-on: macos-latest
timeout-minutes: 45
env:
Expand Down Expand Up @@ -45,4 +45,4 @@ jobs:
printf '%s' "$ASC_KEY_CONTENT" | base64 -D > "$ASC_KEY_PATH"

- name: Upload to TestFlight
run: bundle exec fastlane beta
run: bundle exec fastlane deploy_testflight
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ vendor/bundle/

# Fastlane
.fastlane/
fastlane/README.md
Comment thread
opficdev marked this conversation as resolved.
fastlane/report.xml
fastlane/test_output/
fastlane/logs/
Expand Down
23 changes: 21 additions & 2 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@ platform :ios do
end

private_lane :build_for_store do
if ENV["FASTLANE_XCODEBUILD_SETTINGS_TIMEOUT"].to_s.strip.empty?
ENV["FASTLANE_XCODEBUILD_SETTINGS_TIMEOUT"] = "30"
end

if ENV["FASTLANE_XCODEBUILD_SETTINGS_RETRIES"].to_s.strip.empty?
ENV["FASTLANE_XCODEBUILD_SETTINGS_RETRIES"] = "5"
end
Comment thread
opficdev marked this conversation as resolved.

api_key = asc_api_key

setup_ci if ENV["CI"]
Expand All @@ -22,6 +30,12 @@ platform :ios do
)
end

match(
api_key: api_key,
type: "development",
readonly: ENV["CI"] == "true"
)

match(
api_key: api_key,
type: "appstore",
Expand All @@ -31,13 +45,14 @@ platform :ios do
build_app(
project: "DevLog.xcodeproj",
scheme: "DevLog",
export_method: "app-store"
export_method: "app-store",
xcargs: "-skipPackagePluginValidation"
)

next api_key
end

lane :beta do
lane :deploy_testflight do
Comment thread
opficdev marked this conversation as resolved.
api_key = build_for_store

upload_to_testflight(
Expand All @@ -46,6 +61,10 @@ platform :ios do
)
end

lane :testflight_build_only do
build_for_store
end

lane :release do
api_key = build_for_store

Expand Down
40 changes: 0 additions & 40 deletions fastlane/README.md

This file was deleted.