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:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Set up Flutter
uses: subosito/flutter-action@v2 # Replace with the actual version
uses: subosito/flutter-action@v3
with:
channel: 'stable'
- name: Get dependencies
run: flutter pub get
- name: Build APK
run: flutter build apk --debug
- name: Build Release APK
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
uses: actions/upload-artifact@v2
- name: Build Debug APK
run: flutter build apk --debug
working-directory: ${{ github.workspace }}
- name: Upload Debug APK artifact
uses: actions/upload-artifact@v3
with:
name: app-debug
path: build/app/outputs/flutter-apk/app-debug.apk

View file

@ -43,8 +43,6 @@ android {
defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
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
targetSdkVersion 32
versionCode flutterVersionCode.toInteger()