-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
12 additions
and
12 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 |
---|---|---|
|
@@ -49,7 +49,7 @@ jobs: | |
matrix: # Use a matrix allowing us to build multiple apps in parallel. Just add an entry to the matrix and it will build! | ||
sample-app: | ||
# List all sample apps you want to have compiled. | ||
# List item is name of directory inside of "Apps" directory for the corresponding app to compile. | ||
# List item is name of directory inside of "apps" directory for the corresponding app to compile. | ||
- "amiapp_flutter" | ||
|
||
steps: | ||
|
@@ -60,47 +60,47 @@ jobs: | |
|
||
- name: Install dependencies to build sample app | ||
run: flutter pub get | ||
working-directory: "Apps/${{ matrix.sample-app }}" | ||
working-directory: "apps/${{ matrix.sample-app }}" | ||
|
||
# iOS setup | ||
|
||
- name: Run iOS setup steps to be able to build sample apps | ||
uses: customerio/customerio-ios/.github/actions/setup-ios@levi/ci/make-githubactions-reusable | ||
with: | ||
xcode-version: '15.3' | ||
gemfile-directory: 'Apps/' | ||
gemfile-directory: 'apps/' | ||
|
||
- name: pod install | ||
run: pod install --project-directory=ios | ||
working-directory: "Apps/${{ matrix.sample-app }}" | ||
working-directory: "apps/${{ matrix.sample-app }}" | ||
|
||
# Setup credentials | ||
|
||
- name: Setup JS files with Customer.io workspace credentials to compile into app | ||
run: | | ||
cp "Apps/${{ matrix.sample-app }}/.env.example " "Apps/${{ matrix.sample-app }}/.env" | ||
sd "siteid" "${{ secrets[format('CUSTOMERIO_{0}_WORKSPACE_SITE_ID', matrix.sample-app)] }}" "Apps/${{ matrix.sample-app }}/env.js" | ||
sd "apikey" "${{ secrets[format('CUSTOMERIO_{0}_WORKSPACE_API_KEY', matrix.sample-app)] }}" "Apps/${{ matrix.sample-app }}/env.js" | ||
cp "apps/${{ matrix.sample-app }}/.env.example " "apps/${{ matrix.sample-app }}/.env" | ||
sd "siteid" "${{ secrets[format('CUSTOMERIO_{0}_WORKSPACE_SITE_ID', matrix.sample-app)] }}" "apps/${{ matrix.sample-app }}/env.js" | ||
sd "apikey" "${{ secrets[format('CUSTOMERIO_{0}_WORKSPACE_API_KEY', matrix.sample-app)] }}" "apps/${{ matrix.sample-app }}/env.js" | ||
- name: Setup Swift files with Customer.io workspace credentials to compile into app | ||
run: | | ||
cp "Apps/${{ matrix.sample-app }}/ios/Env.swift.example" "Apps/${{ matrix.sample-app }}/ios/Env.swift" | ||
sd "siteid" "${{ secrets[format('CUSTOMERIO_{0}_WORKSPACE_SITE_ID', matrix.sample-app)] }}" "Apps/${{ matrix.sample-app }}/ios/Env.swift" | ||
sd "apiKey" "${{ secrets[format('CUSTOMERIO_{0}_WORKSPACE_API_KEY', matrix.sample-app)] }}" "Apps/${{ matrix.sample-app }}/ios/Env.swift" | ||
cp "apps/${{ matrix.sample-app }}/ios/Env.swift.example" "apps/${{ matrix.sample-app }}/ios/Env.swift" | ||
sd "siteid" "${{ secrets[format('CUSTOMERIO_{0}_WORKSPACE_SITE_ID', matrix.sample-app)] }}" "apps/${{ matrix.sample-app }}/ios/Env.swift" | ||
sd "apiKey" "${{ secrets[format('CUSTOMERIO_{0}_WORKSPACE_API_KEY', matrix.sample-app)] }}" "apps/${{ matrix.sample-app }}/ios/Env.swift" | ||
# Build app | ||
|
||
- name: Update app version to uniquely identify build for easier finding later. | ||
uses: maierj/[email protected] | ||
with: | ||
lane: "ios flutter_update_app_version" | ||
subdirectory: "Apps/${{ matrix.sample-app }}/ios" | ||
subdirectory: "apps/${{ matrix.sample-app }}/ios" | ||
|
||
- name: Build app via Fastlane | ||
uses: maierj/[email protected] | ||
with: | ||
lane: "ios build" | ||
subdirectory: "Apps/${{ matrix.sample-app }}/ios" | ||
subdirectory: "apps/${{ matrix.sample-app }}/ios" | ||
env: | ||
GOOGLE_CLOUD_MATCH_READONLY_SERVICE_ACCOUNT_B64: ${{ secrets.GOOGLE_CLOUD_MATCH_READONLY_SERVICE_ACCOUNT_B64 }} | ||
FIREBASE_APP_DISTRIBUTION_SERVICE_ACCOUNT_CREDS_B64: ${{ secrets.FIREBASE_APP_DISTRIBUTION_SERVICE_ACCOUNT_CREDS_B64 }} | ||
|