Skip to content

Add sha256sum verification to gradle-wrapper.properties #91

Add sha256sum verification to gradle-wrapper.properties

Add sha256sum verification to gradle-wrapper.properties #91

Workflow file for this run

name: "Android CI: build and test"
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch: # Allows you to run the workflow manually from the Actions tab
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
cache: gradle
- name: Create unsigned apk and release bundle
uses: ./.github/actions/build
with:
releaseBuild: 'true'
buildApk: 'true'
buildBundle: 'false'
- name: Upload unsigned APK
uses: actions/upload-artifact@v4.5.0
with:
name: unsigned-release-apk
path: app/build/outputs/apk/release/app-release-unsigned.apk
if-no-files-found: error
- uses: noriban/sign-android-release@v5
name: Sign app APK
if: ${{ github.event_name != 'pull_request' }}
# ID used to access action output
id: sign_app
with:
releaseDirectory: app/build/outputs/apk/release
signingKeyBase64: ${{ secrets.CI_KEYSTORE_BASE64 }}
alias: ${{ secrets.CI_ALIAS }}
keyStorePassword: ${{ secrets.CI_KEY_STORE_PASSWORD }}
keyPassword: ${{ secrets.CI_KEY_PASSWORD }}
- name: Upload signed APK
uses: actions/upload-artifact@v4.5.0
if: ${{ github.event_name != 'pull_request' }}
with:
name: signed-release-apk
path: ${{steps.sign_app.outputs.signedReleaseFile}}
if-no-files-found: error