diff --git a/.github/workflows/deploy-to-testflight.yml b/.github/workflows/deploy-to-testflight.yml new file mode 100644 index 000000000..c4c73632f --- /dev/null +++ b/.github/workflows/deploy-to-testflight.yml @@ -0,0 +1,23 @@ +on: + # Enable manual run + workflow_dispatch: + inputs: + lane: + description: "Fastlane lane" + required: true + default: "beta" + type: choice + options: + - beta + fastlane-deploy: + runs-on: macos-latest + steps: + - name: Checkout + uses: actions/checkout@main + - uses: nomasystems/action-xcode-select@v0.1 + - name: Deploy with fastlane + run: bundle exec fastlane beta + env: + APP_STORE_CONNECT_API_KEY_CONTENT: ${{Secrets. APP_STORE_CONNECT_API_KEY_CONTENT}} + APP_STORE_CONNECT_ISSUER_ID: ${{Secrets. APP_STORE_CONNECT_ISSUER_ID}} + APP_STORE_CONNECT_API_KEY_ID: ${{Secrets. APP_STORE_CONNECT_API_KEY_ID}} diff --git a/fastlane/Fastfile b/fastlane/Fastfile index 1968cdefd..ce3eb539e 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -19,10 +19,13 @@ platform :ios do desc "Push a new beta build to TestFlight" lane :beta do xcodes # ensure correct version of xcode is installed and selected - api_key = app_store_connect_api_key( - key_id: "4L8Z9W89TJ", - issuer_id: "8985ca52-aba6-4f7a-91bb-d052a5b030fa", - key_filepath: "~/.fastlane/AuthKey_4L8Z9W89TJ.p8" + asc_key_content = ENV["APP_STORE_CONNECT_API_KEY_CONTENT"] + asc_issuer_id = ENV["APP_STORE_CONNECT_ISSUER_ID"] + asc_key_id = ENV["APP_STORE_CONNECT_API_KEY_ID"] + app_store_connect_api_key( + key_id: asc_key_id, + issuer_id: asc_issuer_id, + key_content: asc_key_content ) increment_build_number(xcodeproj: "Nos.xcodeproj") version_number = get_version_number