Skip to content

Commit d617606

Browse files
committed
chore: use gradle task to build apk
1 parent 68cf2d6 commit d617606

1 file changed

Lines changed: 3 additions & 17 deletions

File tree

.github/workflows/android.yml

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,6 @@ jobs:
2626
restore-keys: |
2727
${{ runner.os }}-gradle-
2828
29-
- uses: christian-draeger/write-properties@1.0.1
30-
with:
31-
path: app/version.properties
32-
property: VERSION_NUM
33-
value: ${{ github.run_number }}
34-
3529
- name: set up JDK 17
3630
uses: actions/setup-java@v3
3731
with:
@@ -42,21 +36,13 @@ jobs:
4236
- name: Setup Android SDK
4337
uses: android-actions/setup-android@v2
4438

45-
- name: set up Ruby for fastlane
46-
uses: ruby/setup-ruby@v1
47-
with:
48-
ruby-version: '3.3'
49-
5039
- name: Create debug keystore
5140
run: |
5241
echo "${{ secrets.CI_KEYSTORE }}" > debug.keystore.asc
5342
gpg -d --passphrase "${{ secrets.CI_KEYSTORE_DECRYPT }}" --batch debug.keystore.asc > /home/runner/.android/debug.keystore
5443
55-
- name: Install bundle
56-
run: bundle install
57-
58-
- name: Build apk with fastlane
59-
run: bundle exec fastlane testing
44+
- name: Build debug APK
45+
run: bash ./gradlew assembleCi --stacktrace
6046

6147
- name: set apk name env
6248
run: echo "APK_NAME=$(basename app/build/outputs/apk/ci/*.apk .apk)" >> $GITHUB_ENV
@@ -78,5 +64,5 @@ jobs:
7864
uses: sarisia/actions-status-discord@v1
7965
if: failure()
8066
with:
81-
title: "Build apk"
67+
title: "Build Key Mapper GUI Keyboard apk"
8268
webhook: ${{ secrets.DISCORD_BUILD_STATUS_WEBHOOK }}

0 commit comments

Comments
 (0)