CI: sign apk with present in repo debug key #15
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI Build | |
on: | |
push: | |
branches: [edge] | |
tags: ["*"] | |
pull_request: | |
branches: [edge] | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- uses: actions/checkout@v4 | |
- name: Build | |
run: sh gradlew --no-daemon assembleRelease | |
- name: Sign the apk with debug key | |
run: /usr/local/lib/android/sdk/build-tools/34.0.0/apksigner sign --ks debug.keystore --ks-pass pass:android --ks-key-alias androiddebugkey app/build/outputs/apk/floss/release/*-release.apk | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: DSub2000 APK | |
path: app/build/outputs/apk/floss/release/*-release.apk | |
compression-level: 0 |