Update dependency com.android.tools.build:gradle to v8 #136
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
env: | |
PROPERTIES_PATH: "./android/key.properties" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: '2.8.0' | |
channel: 'stable' | |
cache: true | |
cache-key: flutter # optional, change this to force refresh cache | |
cache-path: ${{ runner.tool_cache }}/flutter # optional, change this to specify the cache path | |
- run: | | |
echo keyPassword=\${{ secrets.KEY_STORE }} > ${{env.PROPERTIES_PATH}} | |
echo storePassword=\${{ secrets.KEY_PASSWORD }} >> ${{env.PROPERTIES_PATH}} | |
echo keyAlias=\${{ secrets.KEY_ALIAS }} >> ${{env.PROPERTIES_PATH}} | |
echo "${{ secrets.KEYSTORE2 }}" | base64 --decode > android/app/upload-keystore.jks | |
- name: Getting Packages | |
run: flutter pub get | |
- name: Build APK | |
run: flutter build apk | |
- name: Upload Release Apk | |
uses: actions/upload-artifact@v3.1.0 | |
with: | |
name: release-apk | |
path: build/app/outputs/apk/release/app-release.apk |