Skip to content

Commit

Permalink
chore: use fastlane for uploading to testflight
Browse files Browse the repository at this point in the history
  • Loading branch information
siepra committed Oct 23, 2023
1 parent 100add9 commit bc10067
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 14 deletions.
22 changes: 10 additions & 12 deletions .github/workflows/mobile-deploy-ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ jobs:
with:
lfs: true

- name: Install gpg
- name: Install Fastlane
run: gem install fastlane

- name: Install GPG
run: brew install gnupg

- name: Setup XCode
Expand Down Expand Up @@ -76,16 +79,11 @@ jobs:
name: Quiet.ipa
path: ./packages/mobile/ios/build/Quiet.ipa

- name: Submit to the store
- name: Submit to TestFlight
run: |
cd ./packages/mobile/ios
xcrun altool \
--upload-app \
--type ios \
--file build/Quiet.ipa \
-u $APPSTORE_USER \
-p $APPSTORE_PASSWORD \
--verbose
cd ./packages/mobile
fastlane ios beta
env:
APPSTORE_USER: ${{ secrets.APPSTORE_USER }}
APPSTORE_PASSWORD: ${{ secrets.APPSTORE_PASSWORD }}
APP_STORE_CONNECT_API_KEY_KEY: ${{ secrets.APP_STORE_CONNECT_API_KEY_KEY }}
APP_STORE_CONNECT_API_KEY_KEY_ID: ${{ secrets.APP_STORE_CONNECT_API_KEY_KEY_ID }}
APP_STORE_CONNECT_API_KEY_ISSUER_ID: ${{ secrets.APP_STORE_CONNECT_API_KEY_ISSUER_ID }}
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"version": "independent",
"command": {
"version": {
"allowBranch": ["master", "develop"],
"allowBranch": ["master", "develop", "chore/ios-fastlane-upload"],
"conventionalCommits": true,
"createRelease": "github"
},
Expand Down
2 changes: 2 additions & 0 deletions packages/mobile/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ buck-out/
**/fastlane/screenshots
**/fastlane/test_output

**/fastlane/.env.default

# Bundle artifact
*.jsbundle

Expand Down
4 changes: 3 additions & 1 deletion packages/mobile/Gemfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
source 'https://rubygems.org'
# You may use http://rbenv.org/ or https://rvm.io/ to install and use this version
ruby '2.7.5'
gem 'cocoapods', '~> 1.11', '>= 1.11.2'
gem 'cocoapods', '~> 1.11', '>= 1.11.2'

gem 'fastlane'
8 changes: 8 additions & 0 deletions packages/mobile/fastlane/Fastfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
fastlane_version '2.216.0'

platform :ios do
desc 'Ship to TestFlight'
lane :beta do
pilot upload
end
end

0 comments on commit bc10067

Please sign in to comment.