diff --git a/.github/workflows/build-sample-apps.yml b/.github/workflows/build-sample-apps.yml index 66edf8b..a9c648c 100644 --- a/.github/workflows/build-sample-apps.yml +++ b/.github/workflows/build-sample-apps.yml @@ -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,7 +60,7 @@ 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 @@ -68,25 +68,25 @@ jobs: 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 @@ -94,13 +94,13 @@ jobs: uses: maierj/fastlane-action@v3.1.0 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/fastlane-action@v3.1.0 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 }}