Skip to content

Commit

Permalink
Merge pull request yukiarrr#101 from jeong-sik/add-build_path
Browse files Browse the repository at this point in the history
add build_path param
  • Loading branch information
yukiarrr committed Apr 19, 2023
2 parents bd8fa0a + fd0e589 commit bb77382
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,10 @@ The SDK that should be used for building the application. Default `""`. For exam

Use a custom destination for building the app. Default `""`. For example, `"generic/platform=iOS"`.

### `build-path`

Use a custom build path for building the app. Default `"/Users/{user}/Library/Developer/Xcode/Archives/{date}"`. For example, `"./archive"`.

### `increment-version-number`

Increment the version number of your project. Supports `"patch"`, `"minor"`, `"major"` or a specific version number. Default `""`.
Expand Down
4 changes: 4 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@ inputs:
description: 'Base64 encoded App Store Connect API Key'
required: false
default: ""
build-path:
description: 'Build path'
required: false
default: ""
runs:
using: "node12"
main: "dist/index.js"
4 changes: 3 additions & 1 deletion fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ platform :ios do
use_build_sdk = !ENV['BUILD_SDK'].empty?
use_build_destination = !ENV['BUILD_DESTINATION'].empty?
use_cloned_source_packages_path = !ENV['CLONED_SOURCE_PACKAGES_PATH'].empty?
use_build_path = !ENV['BUILD_PATH'].empty?

if !ENV['INCREMENT_BUILD_NUMBER'].empty?
if ENV['INCREMENT_BUILD_NUMBER'] == 'true'
Expand Down Expand Up @@ -205,7 +206,8 @@ platform :ios do
export_options: use_export_options ? ENV['EXPORT_OPTIONS'] : nil,
skip_profile_detection: use_export_options,
sdk: use_build_sdk ? ENV['BUILD_SDK'] : nil,
destination: use_build_destination ? ENV['BUILD_DESTINATION'] : nil
destination: use_build_destination ? ENV['BUILD_DESTINATION'] : nil,
build_path: use_build_path ? ENV['BUILD_PATH'] ? : nil
)

delete_keychain(name: 'ios-build.keychain')
Expand Down
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ async function run() {
process.env.APP_STORE_CONNECT_API_KEY_ID = core.getInput('app-store-connect-api-key-id');
process.env.APP_STORE_CONNECT_API_KEY_ISSUER_ID = core.getInput('app-store-connect-api-key-issuer-id');
process.env.APP_STORE_CONNECT_API_KEY_BASE64 = core.getInput('app-store-connect-api-key-base64');
process.env.BUILD_PATH = core.getInput('build-path');

// Execute build.sh
await exec.exec(`bash ${__dirname}/../build.sh`);
Expand Down

0 comments on commit bb77382

Please sign in to comment.