diff --git a/.github/workflows/testflight.yml b/.github/workflows/testflight.yml
new file mode 100644
index 0000000..0e68d23
--- /dev/null
+++ b/.github/workflows/testflight.yml
@@ -0,0 +1,34 @@
+name: Beta Release
+on:
+ push:
+ tags:
+ - v*.*.*
+jobs:
+ test:
+ name: TestFlight
+ runs-on: macOS-latest
+ steps:
+ - name: Checkout
+ uses: actions/checkout@master
+ - name: XCode Setup
+ uses: maxim-lobanov/setup-xcode@v1
+ with:
+ xcode-version: '12.2'
+ - uses: actions/cache@v2
+ with:
+ path: Carthage
+ key: ${{ runner.os }}-carthage-${{ hashFiles('**/Cartfile.resolved') }}
+ restore-keys: |
+ ${{ runner.os }}-carthage-
+ - name: Carthage
+ run: |
+ ./carthage.sh bootstrap --no-use-binaries --platform iOS --cache-builds
+ - name: Archive and upload to Testflight 🚀
+ run: |
+ bundle install && bundle exec fastlane beta
+ env:
+ CI: 1
+ MATCH_GIT_PRIVATE_KEY: ${{ secrets.MATCH_GIT_PRIVATE_KEY }}
+ MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
+ FASTLANE_APPLE_APPLICATION_SPECIFIC_PASSWORD: ${{ secrets.FASTLANE_APPLE_APPLICATION_SPECIFIC_PASSWORD }}
+
diff --git a/DEV-Simple.xcodeproj/project.pbxproj b/DEV-Simple.xcodeproj/project.pbxproj
old mode 100755
new mode 100644
index 458b76f..479dbb7
--- a/DEV-Simple.xcodeproj/project.pbxproj
+++ b/DEV-Simple.xcodeproj/project.pbxproj
@@ -577,7 +577,7 @@
CODE_SIGN_ENTITLEMENTS = "DEV-Simple/DEV-Simple.entitlements";
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
- CURRENT_PROJECT_VERSION = 1;
+ CURRENT_PROJECT_VERSION = 5;
DEVELOPMENT_TEAM = R9SWHSQNV8;
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
@@ -589,7 +589,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
- MARKETING_VERSION = 1.5.0;
+ MARKETING_VERSION = 1.5.1;
PRODUCT_BUNDLE_IDENTIFIER = to.dev.ios;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
@@ -605,7 +605,7 @@
CODE_SIGN_ENTITLEMENTS = "DEV-Simple/DEV-Simple.entitlements";
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
- CURRENT_PROJECT_VERSION = 1;
+ CURRENT_PROJECT_VERSION = 5;
DEVELOPMENT_TEAM = R9SWHSQNV8;
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
@@ -617,7 +617,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
- MARKETING_VERSION = 1.5.0;
+ MARKETING_VERSION = 1.5.1;
PRODUCT_BUNDLE_IDENTIFIER = to.dev.ios;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
diff --git a/DEV-Simple/Info.plist b/DEV-Simple/Info.plist
index 8aaf70b..7b4140c 100755
--- a/DEV-Simple/Info.plist
+++ b/DEV-Simple/Info.plist
@@ -36,7 +36,7 @@
CFBundleVersion
- $(CURRENT_PROJECT_VERSION)
+ 5
LSRequiresIPhoneOS
NSAppTransportSecurity
diff --git a/DEV-SimpleTests/Info.plist b/DEV-SimpleTests/Info.plist
index 6c40a6c..6c538d6 100755
--- a/DEV-SimpleTests/Info.plist
+++ b/DEV-SimpleTests/Info.plist
@@ -17,6 +17,6 @@
CFBundleShortVersionString
1.0
CFBundleVersion
- 1
+ 5
diff --git a/DEV-SimpleUITests/Info.plist b/DEV-SimpleUITests/Info.plist
index 4a913d1..2b1c40e 100755
--- a/DEV-SimpleUITests/Info.plist
+++ b/DEV-SimpleUITests/Info.plist
@@ -22,6 +22,6 @@
CFBundleShortVersionString
1.0
CFBundleVersion
- 1
+ 5
diff --git a/fastlane/Fastfile b/fastlane/Fastfile
index 8bed051..65add10 100755
--- a/fastlane/Fastfile
+++ b/fastlane/Fastfile
@@ -21,8 +21,16 @@ platform :ios do
run_tests(
scheme: "DEV-Simple",
clean: true,
- devices: ["iPhone 11 Pro Max"],
+ devices: ["iPhone 12 Pro Max"],
code_coverage: true
)
end
+
+ desc "TestFlight upload"
+ lane :beta do
+ increment_build_number
+ match(type: "appstore", readonly: true, app_identifier: "to.dev.ios")
+ gym(scheme: "DEV-Simple", configuration: "Release", clean: true)
+ upload_to_testflight(skip_waiting_for_build_processing: true)
+ end
end
diff --git a/fastlane/README.md b/fastlane/README.md
index 1f08803..01facab 100644
--- a/fastlane/README.md
+++ b/fastlane/README.md
@@ -21,6 +21,11 @@ or alternatively using `brew install fastlane`
fastlane ios test
```
Runs all the tests
+### ios beta
+```
+fastlane ios beta
+```
+TestFlight upload
----