Skip to content

Commit

Permalink
Final touches for Apple CI
Browse files Browse the repository at this point in the history
- Enable only on git tags
- Bump version and build number correcly
  • Loading branch information
DRSchlaubi committed Oct 17, 2023
1 parent 4323956 commit c88e841
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ jobs:
build_ios_app:
name: Deploy to test flight
runs-on: macos-latest
#if: startsWith(github.ref, 'refs/tags/')
if: startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
Expand Down
12 changes: 11 additions & 1 deletion app/ios/fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ APPLE_ISSUER_ID = ENV["APPLE_ISSUER_ID"]
APPLE_KEY_ID = ENV["APPLE_KEY_ID"]
APPLE_KEY_CONTENT = ENV["APPLE_KEY_CONTENT"]
GIT_AUTHORIZATION = ENV["GIT_AUTHORIZATION"]
VERSION = ENV["GITHUB_REF_NAME"]
BUILD_NUMBER = ENV["GITHUB_RUN_NUMBER"]

def delete_temp_keychain(name)
delete_keychain(
Expand Down Expand Up @@ -44,7 +46,15 @@ platform :ios do
in_house: false
)

increment_build_number(xcodeproj: "iosApp.xcodeproj")
increment_build_number(
build_number: "#{BUILD_NUMER}",
xcodeproj: "iosApp.xcodeproj"
)

increment_version_number(
version_number: "#{VERSION}",
xcodeproj: "iosApp.xcodeproj"
)

cocoapods(
clean_install: true
Expand Down

0 comments on commit c88e841

Please sign in to comment.