From 7fb5c992b6235d350cbd45962d1e51c5a044d019 Mon Sep 17 00:00:00 2001 From: Rapha <25059996+sdrapha@users.noreply.github.com> Date: Sat, 15 Oct 2022 18:53:04 -0400 Subject: [PATCH] Rename resulting CI artifact (#180) * Rename resulting CI artifact Add details to the name of the artifact, to distiguish downloads of it between multiple branches while testing * Update CI to nodejs16 and improve artifact naming --- .github/workflows/make-apk.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/make-apk.yml b/.github/workflows/make-apk.yml index 3f872ba..f580d04 100644 --- a/.github/workflows/make-apk.yml +++ b/.github/workflows/make-apk.yml @@ -9,14 +9,14 @@ jobs: Build-Apk: runs-on: ubuntu-latest steps: - - uses: actions/setup-java@v2 + - uses: actions/setup-java@v3 with: distribution: 'zulu' # See 'Supported distributions' for available options java-version: '11' - name: Checkout repo - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Cache debug certificate - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: _build/debug.keystore key: debug-keystore @@ -35,8 +35,13 @@ jobs: fi - name: Build run: make + - name: Artifact naming + run: | + artifact="${{github.repository_owner}} ${{github.ref_name}}" + artifact="${artifact//\//-}" # replace slashes + echo "artifact=${artifact}" >> $GITHUB_ENV - name: Save debug apk - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: - name: debug apk + name: "${{env.artifact}} debug_apk" path: _build/*.apk