Skip to content

Commit

Permalink
Move Set URI before the generate code step (#525)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasanker authored Oct 15, 2023
1 parent deda505 commit d24bb39
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 0 additions & 1 deletion .github/scripts/build-prod.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit d24bb39

Please sign in to comment.