Use last two history entries for suggested reading list. #4187
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: Android branch build | |
on: | |
push: | |
branches: | |
- '*design*' | |
jobs: | |
build_branch: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
- uses: gradle/gradle-build-action@v3 | |
- name: Checkout submodules | |
run: git submodule update --init --recursive | |
- name: Build, test, and lint | |
run: ./gradlew clean assembleAlphaRelease | |
- name: List | |
run: ls -alR ./app/build/outputs/apk/ | |
- uses: kevin-david/zipalign-sign-android-release@v2 | |
name: Sign APK | |
id: build_signed | |
with: | |
releaseDirectory: app/build/outputs/apk/alpha/release | |
signingKeyBase64: ${{ secrets.SIGNING_KEY }} | |
alias: ${{ secrets.KEY_STORE_ALIAS }} | |
keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }} | |
keyPassword: ${{ secrets.KEY_PASSWORD }} | |
env: | |
# override default build-tools version (33.0.0) -- optional | |
BUILD_TOOLS_VERSION: "34.0.0" | |
- uses: actions/upload-artifact@v4 | |
name: Upload APK artifact | |
with: | |
name: app_alpha_release | |
path: ${{steps.build_signed.outputs.signedReleaseFile}} |