-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CI] add first draft to publish to Appstore Connect
- Loading branch information
Showing
2 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
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
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 |
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