Skip to content

Commit

Permalink
Added a Github action to deploy to TestFlight
Browse files Browse the repository at this point in the history
  • Loading branch information
mplorentz committed Dec 14, 2023
1 parent d6ab7f1 commit c416ae3
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 4 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/deploy-to-testflight.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
- 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}}
11 changes: 7 additions & 4 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c416ae3

Please sign in to comment.