Skip to content

build

build #2

Workflow file for this run

name: build
on:
release:
types: [created]
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v4
with:
submodules: true
- run: echo "JAVA_HOME=$JAVA_HOME_17_X64" >> $GITHUB_ENV
- run: echo "SIGNING_STORE_FILE=$RUNNER_TEMP/keystore.jks" >> $GITHUB_ENV
- run: printenv SIGNING_STORE_FILE_BASE64 | base64 -d > "$SIGNING_STORE_FILE"
env:
SIGNING_STORE_FILE_BASE64: ${{ secrets.ANDROID_SIGNING_STORE_FILE_BASE64 }}
- run: ./gradlew --no-daemon :app:assembleRelease :app:bundleRelease
env:
SIGNING_KEY_PASSWORD: ${{ secrets.ANDROID_SIGNING_PASSWORD }}
SIGNING_STORE_PASSWORD: ${{ secrets.ANDROID_SIGNING_PASSWORD }}
SIGNING_KEY_ALIAS: upload
- run: rm "$SIGNING_STORE_FILE"
- uses: microbit-foundation/[email protected]
with:
file: app/build/outputs/bundle/release/app-release.aab
asset_name: microbit-release-${{ env.TAG }}.aab
- uses: microbit-foundation/[email protected]
with:
file: app/build/outputs/apk/release/app-release.apk
asset_name: microbit-release-${{ env.TAG }}.apk