Release builds!

i have no idea what fixed it but we got working release builds now!
This commit is contained in:
Mercurio 2023-12-08 21:37:43 +01:00
parent 6ba2974ee5
commit dbce10b812
2 changed files with 17 additions and 8 deletions

View file

@ -11,21 +11,32 @@ jobs:
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v2 uses: actions/checkout@v3
- name: Set up Flutter - name: Set up Flutter
uses: subosito/flutter-action@v2 # Replace with the actual version uses: subosito/flutter-action@v3
with: with:
channel: 'stable' channel: 'stable'
- name: Get dependencies - name: Get dependencies
run: flutter pub get run: flutter pub get
- name: Build APK - name: Build Release APK
run: flutter build apk --debug run: flutter build apk --release
working-directory: ${{ github.workspace }}
- name: Upload Release APK artifact
uses: actions/upload-artifact@v3
with:
name: app-release
path: build/app/outputs/flutter-apk/app-release.apk
- name: Upload APK artifact - name: Build Debug APK
uses: actions/upload-artifact@v2 run: flutter build apk --debug
working-directory: ${{ github.workspace }}
- name: Upload Debug APK artifact
uses: actions/upload-artifact@v3
with: with:
name: app-debug name: app-debug
path: build/app/outputs/flutter-apk/app-debug.apk path: build/app/outputs/flutter-apk/app-debug.apk

View file

@ -43,8 +43,6 @@ android {
defaultConfig { defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "com.olbiaphlee.openshock_android" applicationId "com.olbiaphlee.openshock_android"
// You can update the following values to match your application needs.
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
minSdkVersion 32 minSdkVersion 32
targetSdkVersion 32 targetSdkVersion 32
versionCode flutterVersionCode.toInteger() versionCode flutterVersionCode.toInteger()