forked from Samsung/microbit
-
Notifications
You must be signed in to change notification settings - Fork 10
33 lines (32 loc) · 1.26 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: build
on:
release:
types: [created]
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
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-${{ github.event.release.tag_name }}.aab
- uses: microbit-foundation/[email protected]
with:
file: app/build/outputs/apk/release/app-release.apk
asset_name: microbit-release-${{ github.event.release.tag_name }}.apk