mobile ui updates #1250
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Mobile CI | |
on: | |
push: | |
branches: | |
- main | |
- dev | |
concurrency: | |
group: ${{ github.ref }}-mobile | |
cancel-in-progress: true | |
env: | |
IMAGE: ${{ github.event.repository.name }}-mobile-${{ fromJSON('{"main":"prod"}')[github.ref_name] || github.ref_name }} | |
jobs: | |
build-mobile: | |
runs-on: macos-latest | |
if: ${{ contains(github.event.head_commit.message, '~mobile') }} | |
environment: ${{ fromJSON('{"main":"prod"}')[github.ref_name] || github.ref_name }} | |
env: | |
API_ENDPOINT: ${{ vars.API_ENDPOINT }} | |
steps: | |
- name: Print Job Description | |
run: | | |
echo building \"$IMAGE\" from branch \"${{ github.ref_name }}\" | |
- name: Git Checkout | |
uses: actions/checkout@v3 | |
with: | |
ssh-key: ${{ secrets.GIT_SSH_KEY }} | |
submodules: recursive | |
- name: Xcode build | |
uses: sersoft-gmbh/xcodebuild-action@v2 | |
with: | |
workspace: src/mobile/ios/ReadLess/ReadLess.xcworkspace | |
scheme: ReadLess | |
destination: platform=iOS | |
action: archive | |
#- name: Upload Build to AppStore Connect | |
deploy-mobile: | |
needs: build-mobile | |
runs-on: macos-latest | |
environment: ${{ fromJSON('{"main":"prod"}')[github.ref_name] || github.ref_name }} | |
steps: | |
- name: Print Job Description | |
run: | | |
echo deploying \"$IMAGE\" from branch \"${{ github.ref_name }}\" | |
- name: Git Checkout | |
uses: actions/checkout@v3 | |
with: | |
ssh-key: ${{ secrets.GIT_SSH_KEY }} | |
submodules: recursive |