Skip to content

Commit 68438e7

Browse files
committed
ci: Fix Android signing
1 parent 6035881 commit 68438e7

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/release.yml

+8
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,12 @@ jobs:
180180
cd android
181181
version=$(cat ../../web/package.json | grep version | head -1 | awk -F: '{ print $2 }' | sed 's/[",]//g' | tr -d '[[:space:]]')
182182
APP_VERSION_NAME=$version ./gradlew assembleRelease
183+
- name: Setup build tool version variable
184+
shell: bash
185+
run: |
186+
BUILD_TOOL_VERSION=$(ls /usr/local/lib/android/sdk/build-tools/ | tail -n 1)
187+
echo "BUILD_TOOL_VERSION=$BUILD_TOOL_VERSION" >> $GITHUB_ENV
188+
echo Last build tool version is: $BUILD_TOOL_VERSION
183189
- uses: r0adkll/sign-android-release@v1
184190
name: sign apk
185191
with:
@@ -188,6 +194,8 @@ jobs:
188194
alias: ${{ secrets.ALIAS }}
189195
keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }}
190196
keyPassword: ${{ secrets.KEY_PASSWORD }}
197+
env:
198+
BUILD_TOOLS_VERSION: ${{ env.BUILD_TOOL_VERSION }}
191199
- run: mv $(ls -Art android/app/build/outputs/apk/release/*.apk | tail -n 1) ../kalker-android.apk
192200
- uses: actions/upload-artifact@v2
193201
with:

0 commit comments

Comments
 (0)