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.
This commit is contained in:
PixelyIon 2022-05-30 21:10:22 +05:30
parent b91ce939a2
commit c516819e6e

View File

@ -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/