Skip to content

Commit

Permalink
[CI] add first draft to publish to Appstore Connect
Browse files Browse the repository at this point in the history
  • Loading branch information
clangenb committed Nov 18, 2024
1 parent d1c37d7 commit fc393e6
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/publish_to_apple_appstore_connect.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Deploy Flutter App to Appstore Connect

on:
push:
branches:
- beta

jobs:
build-and-deploy:
runs-on: macos-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Install flutter wrapper
run: ./scripts/install_flutter_wrapper.sh

- name: Get dependencies (i.e., melos)
run: .flutter/bin/dart pub get

- name: Melos Bootstrap
run: .flutter/bin/dart run melos bootstrap

- name: Setup Apple Code Signing - Import Certificates and Provisioning Profiles
uses: apple-actions/import-codesign-certs@v1
with:
p12-file-base64: ${{ secrets.P12_FILE }}
p12-password: ${{ secrets.P12_PASSWORD }}
mobileprovision-file-base64: ${{ secrets.PROVISION_PROFILE }}

- name: Build iOS IPA
run: .flutter/bin/dart run melos build-ipa-release
env:
CI: true

- name: Upload to App Store Connect
uses: appleboy/[email protected]
with:
issuer_id: ${{ secrets.APP_STORE_ISSUER_ID }}
key_id: ${{ secrets.APP_STORE_KEY_ID }}
private_key: ${{ secrets.APP_STORE_PRIVATE_KEY }}
ipa_path: app/build/ios/ipa/*.ipa
4 changes: 4 additions & 0 deletions melos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,10 @@ scripts:
run: cd app && flutter build appbundle --release
description: "Build an appbundle file ready to be submitted to the google play console"

build-ipa-release:
run: cd app && flutter build appbundle --release
description: "Build an appbundle file ready to be submitted to the google play console"

# Integration test Encointer Wallet
integration-app-test-android:
run: cd app && flutter drive --target=test_driver/app.dart --flavor dev
Expand Down

0 comments on commit fc393e6

Please sign in to comment.