Skip to content

Commit

Permalink
Revert "Updated the release workflow"
Browse files Browse the repository at this point in the history
This reverts commit 9ce80cf.
  • Loading branch information
gokadzev committed Apr 26, 2024
1 parent b0c0f21 commit c3ad2ad
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 22 deletions.
35 changes: 22 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,25 +69,34 @@ jobs:
- name: Analyze Dart code
run: flutter analyze .

# Build APKs
- name: Build APKs
run: flutter build apk --release --flavor github
# Build arm64 APK for GitHub release
- name: Build arm64 APK
run: flutter build apk --release --split-per-abi --target-platform="android-arm64" --flavor github

# Rename APKs
- name: Rename APKs
run: |
cd build/app/outputs/flutter-apk || exit
mv app-arm64-v8a-github-release.apk Musify-arm64-v8a.apk && \
mv app-github-release.apk Musify.apk
# Release arm64 generated APK
- name: Release arm64 APK
uses: svenstaro/upload-release-action@v2
with:
repo_name: gokadzev/Musify
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: build/app/outputs/flutter-apk/app-arm64-v8a-github-release.apk
asset_name: Musify-arm64-v8a.apk
tag: ${{ steps.extract_version.outputs.version }}
prerelease: false
overwrite: true

# Build universal APK
- name: Build universal APK
run: flutter build apk --release --flavor github

# Release generated APKs
- name: Release APKs
# Release universal generated APK
- name: Release universal APK
uses: svenstaro/upload-release-action@v2
with:
repo_name: gokadzev/Musify
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: build/app/outputs/flutter-apk/*.apk
file_glob: true
file: build/app/outputs/flutter-apk/app-github-release.apk
asset_name: Musify.apk
tag: ${{ steps.extract_version.outputs.version }}
prerelease: false
overwrite: true
9 changes: 0 additions & 9 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,6 @@ android {
targetSdk 34
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName

splits {
abi {
enable true
reset()
universalApk true
include "arm64-v8a"
}
}
}

flavorDimensions "flavor"
Expand Down

0 comments on commit c3ad2ad

Please sign in to comment.