Skip to content

Commit

Permalink
Merge pull request #11 from mahdikhashan/fix-ci-issue
Browse files Browse the repository at this point in the history
ci: fix APP_NAME issue
  • Loading branch information
mahdikhashan authored Dec 25, 2023
2 parents 56a6e36 + 54fa872 commit fd958c6
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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/[email protected]
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
Expand All @@ -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

0 comments on commit fd958c6

Please sign in to comment.