Merge pull request #2 from Logitech/chore/test-ci

chore: better apk file name
This commit is contained in:
Stefan Zollinger
2024-04-16 09:23:19 +02:00
committed by GitHub

View File

@@ -1,12 +1,6 @@
name: Push name: Push
on: on: push
push:
branches:
- "*"
tags:
- "*"
workflow_dispatch:
jobs: jobs:
build: build:
@@ -47,13 +41,20 @@ jobs:
env: env:
BUILD_TOOLS_VERSION: ${{ env.BUILD_TOOL_VERSION }} BUILD_TOOLS_VERSION: ${{ env.BUILD_TOOL_VERSION }}
- run: echo "Build status report=${{ job.status }}." - 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 - name: Upload App Bundle
uses: actions/upload-artifact@v1 uses: actions/upload-artifact@v1
with: with:
name: signed_apk name: signed_apk
path: ${{steps.sign.outputs.signedReleaseFile}} path: app/build/outputs/apk/debug/kirby_${{steps.get-version-id.outputs.id}}.apk
- name: Release - name: Release
uses: softprops/action-gh-release@v2 uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/') if: startsWith(github.ref, 'refs/tags/')
with: with:
files: ${{steps.sign.outputs.signedReleaseFile}} files: app/build/outputs/apk/debug/kirby_${{steps.get-version-id.outputs.id}}.apk