Skip to content

Commit

Permalink
Fix Beta Deployment (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
PSchmiedmayer authored Mar 29, 2024
1 parent cbc216e commit 10b725e
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 51 deletions.
1 change: 1 addition & 0 deletions .github/workflows/beta-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
uses: StanfordBDHG/.github/.github/workflows/xcodebuild-or-fastlane.yml@v2
secrets: inherit
with:
runsonlabels: '["macOS", "self-hosted"]'
artifactname: HealthGPT.xcresult
fastlanelane: beta
setupsigning: true
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ HealthGPT is an experimental iOS app based on [Stanford Spezi](https://github.co

HealthGPT is an open-source project of the [Stanford Biodesign Digital Health](https://bdh.stanford.edu/) team. The initial prototype based on [Spezi](https://github.com/StanfordSpezi/Spezi) and the [SpeziTemplateApplication](https://github.com/StanfordSpezi/SpeziTemplateApplication/) was built by [Varun Shenoy](https://varunshenoy.com).

> [!NOTE]
> Do you want to try HealthGPT? You can download it to your iOS device using [TestFlight](https://testflight.apple.com/join/1wYMt3em)!
## Features

- Extensible architecture built on the [Stanford Spezi](https://github.com/StanfordSpezi/Spezi) open-source digital health development framework for easy customization.
Expand Down
39 changes: 31 additions & 8 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,39 @@ platform :ios do
desc "Build and test"
lane :test do
run_tests(
code_coverage: true,
skip_build: true,
derived_data_path: ".derivedData",
code_coverage: true,
devices: ["iPhone 15 Pro"],
disable_slide_to_type: false,
concurrent_workers: 1,
max_concurrent_simulators: 1,
result_bundle: true,
output_directory: "."
output_directory: ".",
xcargs: "-skipPackagePluginValidation"
)
end

desc "CodeQL"
lane :codeql do
build_app(
skip_archive: true,
skip_codesigning: true,
derived_data_path: ".derivedData",
xcargs: "-skipPackagePluginValidation"
)
end

desc "Build app"
lane :build do
build_app(
derived_data_path: ".derivedData"
derived_data_path: ".derivedData",
xcargs: "-skipPackagePluginValidation",
export_options: {
provisioningProfiles: {
"edu.stanford.bdhg.healthgpt" => "HealthGPT"
}
}
)
end

Expand All @@ -44,16 +66,17 @@ platform :ios do
desc "Publish a beta release to internal TestFlight testers"
lane :beta do
signin
increment_build_number({
build_number: latest_testflight_build_number + 1,
xcodeproj: "HealthGPT.xcodeproj"
})
increment_build_number(
{
build_number: latest_testflight_build_number + 1
}
)
build
commit = last_git_commit
upload_to_testflight(
distribute_external: true,
groups: [
"Internal Testers"
"External Testers"
],
submit_beta_review: true,
notify_external_testers: true,
Expand Down
25 changes: 0 additions & 25 deletions fastlane/Gymfile

This file was deleted.

8 changes: 8 additions & 0 deletions fastlane/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,14 @@ For _fastlane_ installation instructions, see [Installing _fastlane_](https://do

Build and test

### ios codeql

```sh
[bundle exec] fastlane ios codeql
```

CodeQL

### ios build

```sh
Expand Down
18 changes: 0 additions & 18 deletions fastlane/Scanfile

This file was deleted.

0 comments on commit 10b725e

Please sign in to comment.