From d24b48bd732843f024662eaba6d90adcabf8d63a Mon Sep 17 00:00:00 2001 From: PaddiM8 Date: Tue, 25 May 2021 14:53:19 +0200 Subject: [PATCH] Added android release to CI --- .github/workflows/release.yml | 42 +++++++++++++++++++++++++++++++++-- 1 file changed, 40 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c55868f..8bf467f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -34,7 +34,6 @@ jobs: registry-url: https://registry.npmjs.org/ - name: Install wasm-pack run: cargo install --git https://github.com/rustwasm/wasm-pack.git --rev d46d1c69b788956160deed5e4e603f4f2780ffcf - #run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh - name: Build run: | yarn install @@ -135,10 +134,49 @@ jobs: name: binaries path: kalk_cli/target/wix/kalk-windows.msi + release_android: + name: release android + runs-on: ubuntu-latest + defaults: + run: + working-directory: ./kalk_mobile + + steps: + - uses: actions/checkout@master + - uses: actions/cache@v2 + with: + path: | + kalk_mobile/android/.gradle + kalk_mobile/android/build + kalk_mobile/android/app/build + key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }} + - name: npm + run: | + npm install + npm run build + - name: build app + run: | + npx cap sync + cd android + ./gradlew assembleRelease + - uses: r0adkll/sign-android-release@v1 + name: sign apk + with: + releaseDirectory: kalk_mobile/android/app/build/outputs/apk/release + signingKeyBase64: ${{ secrets.SIGNING_KEY }} + alias: ${{ secrets.ALIAS }} + keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }} + keyPassword: ${{ secrets.KEY_PASSWORD }} + - run: mv android/app/build/outputs/apk/release/app-release-unsigned-signed.apk ./kalk-android.apk + - uses: actions/upload-artifact@v2 + with: + name: binaries + path: kalk_mobile/kalk-android.apk + create_release: name: Create Release if: always() - needs: [release_linux, release_mac, release_windows] + needs: [release_linux, release_mac, release_windows, release_android] runs-on: ubuntu-latest steps: - name: Create Release