Skip to content

Commit

Permalink
Merge pull request #9 from mahdikhashan/fix-ci-issue
Browse files Browse the repository at this point in the history
ci: fix verify signature step
  • Loading branch information
mahdikhashan authored Dec 25, 2023
2 parents 3bb2a47 + 4dfe101 commit 577a9b0
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 6 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,15 @@ 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/<<application name>>_${{ github.event.inputs.version }}.apk
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
# 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: <<application name>>
path: app/build/outputs/apk/release/<<application name>>_${{ github.event.inputs.version }}.apk
name: Boudicca-events
path: app/build/outputs/apk/release/Boudicca-events_${{ github.event.inputs.version }}.apk
release:
name: Release APK
needs: build
Expand All @@ -62,7 +63,7 @@ jobs:
- name: Download APK from build
uses: actions/download-artifact@v1
with:
name: <<application name>>
name: Boudicca-events
- name: Create Release
id: create_release
uses: softprops/action-gh-release@v1
Expand All @@ -73,4 +74,4 @@ jobs:
name: Release v${{ github.event.inputs.version }}
draft: false
prerelease: false
files: <<application name>>/<<application name>>_${{ github.event.inputs.version }}.apk
files: Boudicca-events/Boudicca-events_${{ github.event.inputs.version }}.apk
14 changes: 13 additions & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,18 @@ android {
namespace 'com.example.bouddicaclient'
}

task printSigningInfo {
doLast {
println "Signing configuration:"
println "Store file: ${android.signingConfigs.release.storeFile}"
println "Key alias: ${android.signingConfigs.release.keyAlias}"
println "Store password: ${android.signingConfigs.release.storePassword}"
println "Key password: ${android.signingConfigs.release.keyPassword}"
}
}

preBuild.dependsOn printSigningInfo

dependencies {
implementation 'androidx.core:core-ktx:1.12.0'
implementation 'androidx.appcompat:appcompat:1.6.1'
Expand Down Expand Up @@ -117,4 +129,4 @@ dependencies {
implementation 'com.google.code.gson:gson:2.10.1'
// splash screen
implementation "androidx.core:core-splashscreen:1.0.1"
}
}

0 comments on commit 577a9b0

Please sign in to comment.