Upload native debug symbols to artifacts (#43)

* Create cd.yml

* added artifact upload

* fixed jobs sequence

* moved upload to build job

* jobs rename

* keystore

* Update cd.yml

* macos runner

* cd_dev

* Update build.gradle

* Added CD for Prod App Bundle

* Clean up

* removed redundant .apk type from appbundle artifact

* added uploading NDS to artifacts

* override version code

* override version name

* fixed gradle build path

* add version code in gradle
This commit is contained in:
Vadim 2023-02-23 23:05:02 +03:00 committed by GitHub
parent 59287d06bc
commit 7b9f9a91c0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 3 deletions

View file

@ -46,7 +46,15 @@ jobs:
- name: Build appbundle - name: Build appbundle
run: flutter build appbundle --release --flavor prod --dart-define cameraPreviewAspectRatio=2/3 -t lib/main_prod.dart run: flutter build appbundle --release --flavor prod --dart-define cameraPreviewAspectRatio=2/3 -t lib/main_prod.dart
- uses: actions/upload-artifact@v3 - name: Upload app bundle to artifacts
uses: actions/upload-artifact@v3
with: with:
name: m3_lightmeter.apk name: m3_lightmeter_bundle
path: build/app/outputs/bundle/prodRelease/app-prod-release.aab path: build/app/outputs/bundle/prodRelease/app-prod-release.aab
- name: Upload native debug symbols to artifacts
uses: actions/upload-artifact@v3
with:
name: m3_lightmeter_native_debug_symbols
path: |
build/app/intermediates/merged_native_libs/prodRelease/out/lib/

View file

@ -51,7 +51,9 @@ android {
defaultConfig { defaultConfig {
minSdkVersion 21 minSdkVersion 21
targetSdkVersion flutter.targetSdkVersion targetSdkVersion flutter.targetSdkVersion
versionCode flutterVersionCode.toInteger() /// legacy material-lightmeter ap stopped updating after 60022
/// 7xxxx means that it is a new app
versionCode 70000 + flutterVersionCode.toInteger()
versionName flutterVersionName versionName flutterVersionName
} }