This commit is contained in:
Vijay Soni
2025-07-10 00:11:56 +05:30
committed by GitHub
parent cd95891063
commit 05c63f1d17
+16 -3
View File
@@ -20,6 +20,11 @@ jobs:
distribution: temurin distribution: temurin
java-version: 17 java-version: 17
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
with:
gradle-version: wrapper
- name: Cache Gradle files - name: Cache Gradle files
uses: actions/cache@v3 uses: actions/cache@v3
with: with:
@@ -34,7 +39,12 @@ jobs:
run: chmod +x ./gradlew run: chmod +x ./gradlew
- name: Build APK - name: Build APK
run: ./gradlew assembleRelease run: ./gradlew assembleRelease --no-daemon --stacktrace
- name: List APK files
run: |
echo "APK files built:"
find app/build/outputs/apk/release -name "*.apk" -type f
- name: Rename APK - name: Rename APK
run: | run: |
@@ -65,8 +75,10 @@ jobs:
- name: Upload APK as artifact - name: Upload APK as artifact
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: app-release-apk name: bitchat-release-apk-${{ github.ref_name }}
path: app/build/outputs/apk/release/*.apk path: app/build/outputs/apk/release/*.apk
retention-days: 30
if-no-files-found: error
release: release:
needs: build needs: build
@@ -76,12 +88,13 @@ jobs:
- name: Download APK artifact - name: Download APK artifact
uses: actions/download-artifact@v4 uses: actions/download-artifact@v4
with: with:
name: app-release-apk name: bitchat-release-apk-${{ github.ref_name }}
path: . path: .
- name: Create GitHub Release - name: Create GitHub Release
uses: softprops/action-gh-release@v2 uses: softprops/action-gh-release@v2
with: with:
files: bitchat.apk files: bitchat.apk
name: Release ${{ github.ref_name }}
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}