From 85a79ca31326d0e435f9f853ea32937eb79c6b39 Mon Sep 17 00:00:00 2001 From: Shahroz Khan Date: Fri, 6 Sep 2024 16:56:16 +0500 Subject: [PATCH] ci: fix the build action workflow (#146) --- .github/workflows/build.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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