Skip to content

Deploy iOS to App Store #50

Deploy iOS to App Store

Deploy iOS to App Store #50

name: Deploy iOS to App Store
on:
release:
types:
[prereleased, released]
jobs:
build-ios:

Check failure on line 9 in .github/workflows/mobile-deploy-ios.yml

View workflow run for this annotation

GitHub Actions / Deploy iOS to App Store

Invalid workflow file

The workflow is not valid. .github/workflows/mobile-deploy-ios.yml (Line: 9, Col: 3): The workflow must contain at least one job with no dependencies.
needs: detox-ios
runs-on: ${{ matrix.os }}
if: |
startsWith(github.ref, 'refs/tags/@quiet/mobile')
strategy:
matrix:
os: [macOS-latest]
steps:
- name: "Print OS"
run: echo ${{ matrix.os }}
- uses: actions/checkout@v4
with:
lfs: true
- name: Install gpg
run: brew install gnupg
- name: Setup XCode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '14.2'
- name: Setup environment
uses: ./.github/actions/setup-env
with:
cachePrefix: "deploy-ios"
bootstrap-packages: "@quiet/eslint-config,@quiet/logger,@quiet/common,@quiet/types,@quiet/state-manager,@quiet/backend,@quiet/identity,@quiet/mobile,backend-bundle"
- name: Install pod dependencies
run: |
cd ./packages/mobile/ios
pod install
shell: bash
- name: Setup provisioning profile
run: ./.github/secrets/decrypt_secrets.sh
env:
IOS_PROFILE_KEY: ${{ secrets.IOS_PROFILE_KEY }}
IOS_CERTIFICATE_KEY: ${{ secrets.IOS_CERTIFICATE_KEY }}
- name: Build
run: |
cd ./packages/mobile/ios
xcodebuild archive \
-workspace Quiet.xcworkspace \
-scheme Quiet \
-configuration Release \
-archivePath build/Quiet.xcarchive \
PROVISIONING_PROFILE="718ac015-309f-49b6-9653-f6cf84a6377c" \
CODE_SIGN_IDENTITY="Apple Distribution: Zbay LLC (CTYKSWN9T4)"
- name: Export .ipa
run: |
cd ./packages/mobile/ios
xcodebuild \
-exportArchive \
-archivePath build/Quiet.xcarchive \
-exportOptionsPlist ci.plist \
-exportPath build/
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: Quiet.ipa
path: ./packages/mobile/ios/build/Quiet.ipa
- name: Submit to the store
run: |
cd ./packages/mobile/ios
xcrun altool \
--upload-app \
--type ios \
--file build/Quiet.ipa \
-u $APPSTORE_USER \
-p $APPSTORE_PASSWORD \
--verbose
env:
APPSTORE_USER: ${{ secrets.APPSTORE_USER }}
APPSTORE_PASSWORD: ${{ secrets.APPSTORE_PASSWORD }}