From 01bf2693cad6529775dae220c5449e39bae5ee33 Mon Sep 17 00:00:00 2001 From: Stefan Zollinger Date: Fri, 12 Apr 2024 14:12:20 +0200 Subject: [PATCH] chore: better apk file name --- .github/workflows/push.yaml | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/.github/workflows/push.yaml b/.github/workflows/push.yaml index 8f27b5f..580fbe5 100644 --- a/.github/workflows/push.yaml +++ b/.github/workflows/push.yaml @@ -1,12 +1,6 @@ name: Push -on: - push: - branches: - - "*" - tags: - - "*" - workflow_dispatch: +on: push jobs: build: @@ -47,13 +41,20 @@ jobs: env: BUILD_TOOLS_VERSION: ${{ env.BUILD_TOOL_VERSION }} - run: echo "Build status report=${{ job.status }}." + - name: Get tag or commit id + id: get-version-id + uses: iawia002/get-tag-or-commit-id@v1 + with: + length: 7 + - name: Rename + run: mv ${{steps.sign.outputs.signedReleaseFile}} app/build/outputs/apk/debug/kirby_${{steps.get-version-id.outputs.id}}.apk - name: Upload App Bundle uses: actions/upload-artifact@v1 with: name: signed_apk - path: ${{steps.sign.outputs.signedReleaseFile}} + path: app/build/outputs/apk/debug/kirby_${{steps.get-version-id.outputs.id}}.apk - name: Release uses: softprops/action-gh-release@v2 if: startsWith(github.ref, 'refs/tags/') with: - files: ${{steps.sign.outputs.signedReleaseFile}} + files: app/build/outputs/apk/debug/kirby_${{steps.get-version-id.outputs.id}}.apk