Skip to content

Commit

Permalink
Enhance GitHub Actions workflow for iOS and Android builds
Browse files Browse the repository at this point in the history
- Added `ls -l` commands to list the contents of the environment directory and private keys for better visibility during the build process.
- Updated iOS and Android build commands to reference the environment files correctly, ensuring consistent access to configuration settings.

These changes improve debugging and maintainability of the CI/CD pipeline.
  • Loading branch information
YumNumm committed Jan 17, 2025
1 parent 9831ebd commit e0e54d4
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -123,14 +123,18 @@ jobs:
echo "${{ secrets.DOTENV }}" | base64 -d > environment.tar.gz
tar -xzf environment.tar.gz
rm environment.tar.gz
ls -l environment/
- name: Build iOS
working-directory: app
env:
BUILD_NUMBER: ${{ steps.fetch-latest-build-number.outputs.build_number }}
run: |
echo "BUILD_NUMBER=${BUILD_NUMBER}"
flutter build ipa --no-codesign --build-number=${BUILD_NUMBER} --dart-define-from-file=environment/.env.prod
flutter build ipa \
--no-codesign \
--build-number=${BUILD_NUMBER} \
--dart-define-from-file=../environment/.env.prod
- name: Extract App Store Connect API Key
working-directory: app/ios
Expand Down Expand Up @@ -190,7 +194,8 @@ jobs:
- name: Extract App Store Connect API Key
run: |
mkdir ~/.private_keys
echo "${{ secrets.APP_STORE_CONNECT_API_KEY_BASE64 }}" | base64 -d > ~/.private_keys/AuthKey_${{ secrets.APP_STORE_CONNECT_API_KEY_ID }}.p8
echo "${{ secrets.APP_STORE_CONNECT_API_KEY_BASE64 }}" | base64 -d \
> ~/.private_keys/AuthKey_${{ secrets.APP_STORE_CONNECT_API_KEY_ID }}.p8
ls -l ~/.private_keys/AuthKey_${{ secrets.APP_STORE_CONNECT_API_KEY_ID }}.p8
- name: Upload Ipa to App Store Connect
Expand Down Expand Up @@ -221,10 +226,13 @@ jobs:
echo "${{ secrets.DOTENV }}" | base64 -d > environment.tar.gz
tar -xzf environment.tar.gz
rm environment.tar.gz
ls -l environment/
- name: Build Android
working-directory: app
run: flutter build appbundle --release --dart-define-from-file=environment/.env.prod
run: flutter build appbundle \
--release \
--dart-define-from-file=../environment/.env.prod

- name: Upload apk as artifact
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
Expand Down

0 comments on commit e0e54d4

Please sign in to comment.