From 879809f613f6bfab4fcb81a6c69ec18ef451d896 Mon Sep 17 00:00:00 2001 From: Chris Renshaw Date: Thu, 11 Apr 2024 03:03:02 -0300 Subject: [PATCH] Give nightly release and apk pretty names (#4264) * Give nightly release and apk pretty names * Dashes to split up commit hash and CI # are slightly more legible --- .github/workflows/ci.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e48d521a61..9962fc1d32 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -125,13 +125,16 @@ jobs: needs: build-debug-apk permissions: contents: write + env: + APK_NAME: Lawnchair.Debug.${{ github.ref_name }}.Nightly-${{ github.sha }}-(CI_#${{ github.run_number }}).apk steps: - uses: actions/checkout@v4 - uses: actions/download-artifact@v4 - # Rename because the # symbol causes errors in GH release command. - name: Rename .apk file - run: mv ./Debug\ APK/lawnWithQuickstepGithub/debug/*.apk ./debug.apk + run: mv "./Debug APK/lawnWithQuickstepGithub/debug/"*.apk "./$APK_NAME" - name: Delete release if exist then create release - run: gh release view "nightly" && gh release delete "nightly" -y --cleanup-tag ; gh release create "nightly" "./debug.apk" -p --generate-notes env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + gh release view "nightly" && gh release delete "nightly" -y --cleanup-tag + gh release create "nightly" "./$APK_NAME" -p -t "Lawnchair Nightly" --generate-notes