From 54fa8725cda9696dd535adbe834724aa249eb464 Mon Sep 17 00:00:00 2001 From: Mahdi Khashan <58775404+mahdikhashan@users.noreply.github.com> Date: Mon, 25 Dec 2023 17:38:36 +0100 Subject: [PATCH] ci: fix APP_NAME issue --- .github/workflows/build.yml | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a92ea61..d23d671 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -11,6 +11,10 @@ jobs: build: name: Build Signed APK runs-on: ubuntu-latest + + env: + APP_NAME: 'Bouddica Client' + steps: - uses: actions/checkout@v3 - name: Set up JDK 17 @@ -53,23 +57,26 @@ jobs: # Show information about the APK's signing certificates - name: Verify Signature run: | - $ANDROID_SDK_ROOT/build-tools/33.0.1/apksigner verify --print-certs app/build/outputs/apk/release/Boudicca-events_${{ github.event.inputs.version }}.apk + $ANDROID_SDK_ROOT/build-tools/33.0.1/apksigner verify --print-certs app/build/outputs/apk/release/${APP_NAME}_${{ github.event.inputs.version }}.apk # Save the APK after the Build job is complete to publish it as a Github release in the next job - name: Upload APK uses: actions/upload-artifact@v3.1.2 with: - name: Boudicca-events - path: app/build/outputs/apk/release/Boudicca-events_${{ github.event.inputs.version }}.apk + name: "${APP_NAME} + path: app/build/outputs/apk/release/${APP_NAME}_${{ github.event.inputs.version }}.apk + release: name: Release APK needs: build runs-on: ubuntu-latest + steps: - name: Download APK from build uses: actions/download-artifact@v1 with: - name: Boudicca-events + name: ${APP_NAME} + - name: Create Release id: create_release uses: softprops/action-gh-release@v1 @@ -80,4 +87,4 @@ jobs: name: Release v${{ github.event.inputs.version }} draft: false prerelease: false - files: Boudicca-events/Boudicca-events_${{ github.event.inputs.version }}.apk + files: ${APP_NAME}/${APP_NAME}_${{ github.event.inputs.version }}.apk