From c516819e6e4280618218cae2e8b0be9fc6ff496a Mon Sep 17 00:00:00 2001 From: PixelyIon Date: Mon, 30 May 2022 21:10:22 +0530 Subject: [PATCH] Make CI APK name more verbose Adds the CI run number to the APK name, they were `app-(debug/release).apk` but are now `skyline-${CI run number}-(debug/release).apk`. This makes it significantly easier to identify what version a specific build is, this alongside signing consolidates Skyline builds. --- .github/workflows/ci.yml | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6e585bf5..1a1e8455 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -57,23 +57,28 @@ jobs: SIGNING_KEY_PASSWORD: ${{ secrets.SIGNING_KEY_PASSWORD }} run: ./gradlew --stacktrace assemble + - name: Rename APKs + run: | + mv app/build/outputs/apk/debug/app-debug.apk skyline-$GITHUB_RUN_NUMBER-debug.apk + mv app/build/outputs/apk/release/app-release.apk skyline-$GITHUB_RUN_NUMBER-release.apk + - name: Upload Debug APK - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: - name: app-debug.apk - path: app/build/outputs/apk/debug/ + name: skyline-${{ github.run_number }}-debug.apk + path: skyline-${{ github.run_number }}-debug.apk - name: Upload Release APK - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: - name: app-release.apk - path: app/build/outputs/apk/release/ + name: skyline-${{ github.run_number }}-release.apk + path: skyline-${{ github.run_number }}-release.apk - name: Upload R8 Mapping - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: - name: mapping.txt - path: app/build/outputs/mapping/release/ + name: r8-mapping.txt + path: app/build/outputs/mapping/release/mapping.txt - name: Delete Build Folder run: rm -rf app/build/