Skip to content

Build 3.x iOS app

Build 3.x iOS app #4

name: Build 3.x iOS app
on: workflow_dispatch
jobs:
build-ios:
runs-on: macos-13
name: Build iOS app
environment: 'EclipseSource Fastlane Match'
strategy:
matrix:
build_type: [debug]
steps:
- name: Install the Apple certificate and provisioning profile
uses: eclipsesource/prepare-for-signing-action@v1
with:
verbose: true
app_identifier: "${{ matrix.build_type == 'release' && 'com.eclipsesource.*' || 'com.eclipsesource.*' }}"
profile_type: "${{ matrix.build_type == 'release' && 'appstore' || 'development' }}"
match_git_url: ${{ secrets.TABRIS_IOS_MATCH_GIT_URL }}
match_git_branch: ${{ secrets.TABRIS_IOS_MATCH_GIT_BRANCH }}
match_git_ssh_key: ${{ secrets.TABRIS_IOS_MATCH_GIT_SSH_KEY }}
match_password: ${{ secrets.TABRIS_IOS_MATCH_PASSWORD }}
fastlane_team_id: ${{ secrets.TABRIS_IOS_FASTLANE_TEAM_ID }}
fastlane_user: ${{ secrets.TABRIS_IOS_FASTLANE_USER }}
- name: Checkout
uses: actions/checkout@v4
with:
ref: master
path: tabris-plugin-barcode-scanner
fetch-depth: 1
- name: Install tabris-cli
run: npm install -g tabris-cli
- name: Build
env:
TABRIS_BUILD_KEY: ${{ secrets.TABRIS_IOS_BUILD_KEY }}
run: |
cd tabris-plugin-barcode-scanner
npm install
export BUILD_NUMBER="$(date +%y%m%d%H%M).3"
echo BUILD_NUMBER $BUILD_NUMBER
tabris build ios --${{ matrix.build_type }} --device --verbose
- name: AppStore Upload
if: ${{ matrix.build_type == 'release' }}
env:
FASTLANE_USER: ${{ secrets.TABRIS_IOS_FASTLANE_USER }}
FASTLANE_APP_SPECIFIC_PASSWORD: ${{ secrets.TABRIS_IOS_FASTLANE_APP_SPECIFIC_PASSWORD }}
run: |
xcrun altool --upload-app --type ios \
--file "$(find . -iname "*.ipa")" \
--username $FASTLANE_USER \
--password '@env:FASTLANE_APP_SPECIFIC_PASSWORD'
- name: Cleanup
if: always()
run: rm -Rf *