Skip to content

Commit

Permalink
Update Deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
PSchmiedmayer committed Sep 29, 2023
1 parent 314121f commit 19913d0
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 44 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/beta-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ on:
workflow_dispatch:

jobs:
buildandtest:
name: Build and Test
uses: ./.github/workflows/build-and-test.yml
# buildandtest:
# name: Build and Test
# uses: ./.github/workflows/build-and-test.yml
iosapptestflightdeployment:
name: iOS App TestFlight Deployment
needs: buildandtest
# needs: buildandtest
uses: CS342/.github/.github/workflows/xcodebuild-or-fastlane.yml@v2
secrets: inherit
with:
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
# Swift Package Manager
*.xcodeproj
.swiftpm
.build/
.build
.derivedData
!Balance.xcodeproj

# IDE related folders
Expand Down
19 changes: 0 additions & 19 deletions fastlane/ExportOptions.plist

This file was deleted.

6 changes: 0 additions & 6 deletions fastlane/ExportOptions.plist.license

This file was deleted.

24 changes: 10 additions & 14 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,22 +35,19 @@ platform :ios do
lane :build do
build_app(
derived_data_path: ".derivedData",
destination: "generic/platform=iOS",
output_directory: ".build",
archive_path: ".build/Balance.xcarchive",
configuration: "Release",
export_options: {
method: "app-store",
signingStyle: "manual",
signingCertificate: "Apple Distribution: Paul Schmiedmayer (637867499T)",
provisioningProfiles: {
"edu.stanford.cs342.2023.balance" => "CS342 2023 Balance Team Application",
"edu.stanford.cs342.2023.balance.watchApp" => "CS342 2023 Balance Team Watch Application"
}
}
)
# This is an unfortunate workaround for a bug in fastlane: https://github.com/fastlane/fastlane/pull/21319
Dir.chdir("..") do
sh(
"
xcodebuild \
-exportArchive \
-exportOptionsPlist ./fastlane/ExportOptions.plist \
-archivePath ./.build/Balance.xcarchive \
-exportPath ./.build
"
)
end
end

desc "Sign in to the App Store Connect API"
Expand All @@ -74,7 +71,6 @@ platform :ios do
build
commit = last_git_commit
upload_to_testflight(
ipa: "./.build/Balance.ipa",
distribute_external: true,
groups: [
"CS342 2023"
Expand Down

0 comments on commit 19913d0

Please sign in to comment.