Skip to content

Commit

Permalink
Set buildtools variable used for android App signing
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasanker committed Jan 27, 2024
1 parent 8c361ad commit da9045c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/actions/build_android/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ runs:
alias: ${{ inputs.alias }}
keyStorePassword: ${{ inputs.keyStorePassword }}
keyPassword: ${{ inputs.keyPassword }}
env:
BUILD_TOOLS_VERSION: ${{ env.BUILD_TOOL_VERSION }}

- name: "[prod] Upload app bundle"
if: ${{ !!inputs.store_artifacts && inputs.build_type == 'production'}}
Expand Down
7 changes: 7 additions & 0 deletions .github/actions/setup_flutter_environment/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@ runs:
run: flutter pub get
shell: bash

- name: Setup build tool version variable
shell: bash
run: |
BUILD_TOOL_VERSION=$(ls /usr/local/lib/android/sdk/build-tools/ | tail -n 1)
echo "BUILD_TOOL_VERSION=$BUILD_TOOL_VERSION" >> $GITHUB_ENV
echo Last build tool version is: $BUILD_TOOL_VERSION
- name: "[prod] Change target backend to production"
if: ${{ inputs.build_type == 'production' }}
run: sed -i'' -e 's/.env.develop/.env.production/' lib/env/env.dart
Expand Down

0 comments on commit da9045c

Please sign in to comment.