diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 128c37e..78e2a90 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,8 +2,6 @@ name: Flutter Build on: push: - branches: [main] - # Cancel jobs and just run the last one concurrency: group: ${{ github.workflow }}-${{ github.ref }} @@ -23,6 +21,14 @@ jobs: with: distribution: 'temurin' java-version: '17' + - name: Install CLI tools used in CI script + run: | + brew install sd # used in CI script as an easier to use sed CLI. Replaces text in files. + - name: Setup workspace credentials in iOS environment files + run: | + cp "ios/Env.swift.example" "ios/Env.swift" + sd 'siteId: String = ".*"' "siteId: String = \"${{ secrets.CUSTOMERIO_AMIAPP_FLUTTER_WORKSPACE_SITE_ID }}\"" "ios/Env.swift" + sd 'siteId: String = ".*"' "siteId: String = \"${{ secrets.CUSTOMERIO_AMIAPP_FLUTTER_WORKSPACE_API_KEY }}\"" "ios/Env.swift" - uses: ./.github/actions/setup-flutter - run: flutter build ios --release --no-codesign