Skip to content

Single Input iOS Fastlane AdHoc #20

Single Input iOS Fastlane AdHoc

Single Input iOS Fastlane AdHoc #20

name: Single Input iOS Fastlane AdHoc
on:
workflow_dispatch:
inputs:
tramline-input:
required: false
jobs:
deploy:
runs-on: macos-latest
steps:
- name: Configure Tramline
id: tramline
uses: tramlinehq/[email protected]
with:
input: ${{ github.event.inputs.tramline-input }}
- name: Debug ruby
run: ruby --version
- name: Debug cocoapods
run: gem info cocoapods
- name: Set up ruby env
uses: ruby/[email protected]
with:
ruby-version: 3.2.3
bundler-cache: true
- name: Decode signing certificate into a file
env:
CERTIFICATE_BASE64: ${{ secrets.BUILD_CERTIFICATE_BASE64 }}
run: |
echo $CERTIFICATE_BASE64 | base64 --decode > signing-cert.p12
- name: Setup the flutter environment
uses: subosito/flutter-action@v2
with:
flutter-version: '3.22.0'
channel: 'stable'
cache: true
- name: Get flutter dependencies
run: flutter pub get
- name: Debug ruby
run: ruby --version
- name: Debug cocoapods
run: gem install cocoapods
- name: Debug flutter
run: flutter doctor -v
- name: Build the app
run: |
flutter build ipa --debug --build-number=${{ steps.tramline.outputs.version_code }} --build-name=${{ steps.tramline.outputs.version_name }} --no-codesign --dart-define=BUGSNAG_API_KEY=${{ secrets.BUGSNAG_API_KEY }}
ls -la build/ios/archive
- name: Generate and sign the ipa
working-directory: ios
run: bundle install && bundle exec fastlane ios ad_hoc_build
env:
ASC_KEY_ID: ${{ secrets.APPSTORE_API_KEY_ID }}
ASC_ISSUER_ID: ${{ secrets.APPSTORE_ISSUER_ID }}
ASC_KEY: ${{ secrets.APPSTORE_API_PRIVATE_KEY }}
SIGNING_KEY_PASSWORD: ${{ secrets.P12_PASSWORD }}
SIGNING_KEY_FILE_PATH: ../signing-cert.p12
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: iOS IPA
path: ios/*.ipa