diff --git a/.github/scripts/build-prod.sh b/.github/scripts/build-prod.sh index db111ed99..52acf104b 100755 --- a/.github/scripts/build-prod.sh +++ b/.github/scripts/build-prod.sh @@ -3,7 +3,6 @@ BUILD_NAME=$1 BUILD_NUMBER=$2 -sed -i '' 's/.env.develop/.env.production/' lib/env/env.dart flutter build ios --flavor production --release --no-codesign --build-name $BUILD_NAME --build-number $BUILD_NUMBER --target lib/main_production.dart xcodebuild -resolvePackageDependencies -workspace ios/Runner.xcworkspace -scheme production -configuration Release-production xcodebuild -workspace ios/Runner.xcworkspace -scheme production -configuration Release-production DEVELOPMENT_TEAM=Y5U9T77F2K -sdk 'iphoneos' -destination 'generic/platform=iOS' -archivePath build-output/app.xcarchive PROVISIONING_PROFILE_SPECIFIER="githubactions-prod" clean archive CODE_SIGN_IDENTITY="Apple Distribution" diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2fcbbb7fd..5ab96619c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -93,6 +93,10 @@ jobs: - name: Download dependencies run: flutter pub get + - name: Set URI (prod) + if: env.PROD_RELEASE == 'true' + run: sed -i 's/.env.develop/.env.production/' lib/env/env.dart + - name: Generate code run: dart run build_runner build