Skip to content

Commit

Permalink
ci: fix the build action workflow (#146)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shahroz16 authored Sep 6, 2024
1 parent 1369d34 commit 85a79ca
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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

Expand Down

0 comments on commit 85a79ca

Please sign in to comment.