1919 with :
2020 distribution : temurin
2121 java-version : 17
22-
22+
2323 - name : Setup Gradle
2424 uses : gradle/gradle-build-action@v2
2525 with :
@@ -38,32 +38,32 @@ jobs:
3838 - name : Grant execute permission for Gradlew
3939 run : chmod +x ./gradlew
4040
41- - name : Build APK
41+ - name : Build Release APKs (with architecture splits)
4242 run : ./gradlew assembleRelease --no-daemon --stacktrace
43-
43+
4444 - name : List APK files
4545 run : |
4646 echo "APK files built:"
47- find app/build/outputs/apk/release -name "*.apk" -type f
47+ find app/build/outputs/apk/release -name "*.apk" -type f -exec ls -lh {} \;
4848
49- - name : Rename APK
49+ - name : Rename APKs for GitHub Release
5050 run : |
51- mv app/build/outputs/apk/release/app-release-unsigned.apk app/build/outputs/apk/release/bitchat.apk
52-
51+ cd app/build/outputs/apk/release
52+ [ -f "app-arm64-v8a-release-unsigned.apk" ] && mv app-arm64-v8a-release-unsigned.apk bitchat-android-arm64.apk
53+ [ -f "app-x86_64-release-unsigned.apk" ] && mv app-x86_64-release-unsigned.apk bitchat-android-x86_64.apk
54+ [ -f "app-universal-release-unsigned.apk" ] && mv app-universal-release-unsigned.apk bitchat-android-universal.apk
55+
5356 - name : DEBUG
5457 run : |
5558 set -x
56-
5759 pwd
58-
5960 ls -all
60-
6161 cd app/build/outputs/
6262 ls -all
63- tree
64-
65- # Optional: Sign APK (requires secrets)
66- # - name: Sign APK
63+ tree || ls -R
64+
65+ # Optional: Sign APKs (uncomment and configure secrets when ready )
66+ # - name: Sign APKs
6767 # uses: r0adkll/sign-android-release@v1
6868 # with:
6969 # releaseDirectory: app/build/outputs/apk/release
@@ -72,10 +72,10 @@ jobs:
7272 # keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }}
7373 # keyPassword: ${{ secrets.KEY_PASSWORD }}
7474
75- - name : Upload APK as artifact
75+ - name : Upload APKs as artifacts
7676 uses : actions/upload-artifact@v4
7777 with :
78- name : bitchat-release-apk -${{ github.ref_name }}
78+ name : bitchat-android-release -${{ github.ref_name }}
7979 path : app/build/outputs/apk/release/*.apk
8080 retention-days : 30
8181 if-no-files-found : error
@@ -85,16 +85,23 @@ jobs:
8585 runs-on : ubuntu-latest
8686
8787 steps :
88- - name : Download APK artifact
88+ - name : Download release artifacts
8989 uses : actions/download-artifact@v4
9090 with :
91- name : bitchat-release-apk -${{ github.ref_name }}
92- path : .
91+ name : bitchat-android-release -${{ github.ref_name }}
92+ path : release
9393
9494 - name : Create GitHub Release
9595 uses : softprops/action-gh-release@v2
9696 with :
97- files : bitchat.apk
97+ files : |
98+ release/bitchat-android-arm64.apk
99+ release/bitchat-android-x86_64.apk
100+ release/bitchat-android-universal.apk
98101 name : Release ${{ github.ref_name }}
102+ body : |
103+ **bitchat-android-arm64.apk** - ARM64 (most phones)
104+ **bitchat-android-x86_64.apk** - x86_64 (Chromebooks, tablets)
105+ **bitchat-android-universal.apk** - All architectures (fallback)
99106 env :
100107 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
0 commit comments