Skip to content

Commit

Permalink
path fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mrehan27 committed Aug 2, 2024
1 parent 5c1a8be commit e439035
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/build-sample-apps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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 }}
Expand Down

0 comments on commit e439035

Please sign in to comment.