Skip to content

Move android app build to release pipeline #9

Move android app build to release pipeline

Move android app build to release pipeline #9

name: Create Shapes Demo Android App
on:
workflow_dispatch:
pull_request:
branches:
- main
jobs:
create_shapes_demo_android_app:
runs-on: ubuntu-latest
container:
image: "ghcr.io/${{ github.repository }}:android-builder"
credentials:
username: ${{ github.ref }}
password: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2
# Note: The keystore can be transformed into a base64 string using PowerShell like so:
# [Convert]::ToBase64String([IO.File]::ReadAllBytes($FileName))
- name: Decode_Android_key_store
run: echo ${{ secrets.BASE64_KEYSTORE }} | base64 -d > shapes_demo/android/app/keystore.jks
- name: Decode_Android_key_store
run: printf "keyAlias=key1\nkeyPassword=%s\nstoreFile=keystore.jks\nstorePassword=%s" ${{ secrets.ANDROID_RELEASE_KEY_PASSWORD }} ${{ secrets.ANDROID_RELEASE_STORE_PASSWORD }} > shapes_demo/android/keystore.properties
- name: Build_Android
run: ./shapes_demo/android/gradlew --project-dir shapes_demo/android bundleRelease
- uses: actions/upload-artifact@v4
with:
name: shapes_demo_android_app
path: shapes_demo/android/app/build/outputs/bundle/release