diff options
| author | deftkHD | 2023-11-25 20:11:12 +0100 |
|---|---|---|
| committer | GitHub | 2023-11-25 20:11:12 +0100 |
| commit | 684d5c7b70536d7a36d80da659821a2e60d81841 (patch) | |
| tree | 6074b30e89160377481a45d456407b9bcc1b9da9 /.github | |
| parent | 851d22da6e764cf10fc07aacead14f32fba33195 (diff) | |
| download | unexpected-keyboard-684d5c7b70536d7a36d80da659821a2e60d81841.tar.gz unexpected-keyboard-684d5c7b70536d7a36d80da659821a2e60d81841.zip | |
Use Gradle (#452)
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/make-apk.yml | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/.github/workflows/make-apk.yml b/.github/workflows/make-apk.yml index f580d04..ea334de 100644 --- a/.github/workflows/make-apk.yml +++ b/.github/workflows/make-apk.yml @@ -12,36 +12,37 @@ jobs: - uses: actions/setup-java@v3 with: distribution: 'zulu' # See 'Supported distributions' for available options - java-version: '11' + java-version: '17' - name: Checkout repo uses: actions/checkout@v3 - - name: Cache debug certificate - uses: actions/cache@v3 - with: - path: _build/debug.keystore - key: debug-keystore - - name: Restore debug keystore from github Secrets + - name: Restore debug keystore from GitHub Secrets run: | - mkdir -p _build - cd "_build" # Check if exist and use the secret named DEBUG_KEYSTORE # The contents of the secret can be obtained - - # from the debug.keystore.asc from you local _build folder + # from the debug.keystore.asc from you local folder (refer to CONTRIBUTING.md#Using the local debug.keystore on the Github CI actions) if [[ ! "${{ secrets.DEBUG_KEYSTORE }}" = "" ]]; then echo "${{ secrets.DEBUG_KEYSTORE }}" > "debug.keystore.asc" if [[ -s "debug.keystore.asc" ]]; then + echo "Restoring debug keystore from GitHub secrets" gpg -d --passphrase "debug0" --batch "debug.keystore.asc" > "debug.keystore" fi fi - - name: Build - run: make + - name: Build debug APK + uses: gradle/gradle-build-action@v2 + env: + DEBUG_KEYSTORE: "debug.keystore" + DEBUG_KEYSTORE_PASSWORD: debug0 + DEBUG_KEY_ALIAS: debug + DEBUG_KEY_PASSWORD: debug0 + with: + arguments: assembleDebug - name: Artifact naming run: | artifact="${{github.repository_owner}} ${{github.ref_name}}" artifact="${artifact//\//-}" # replace slashes echo "artifact=${artifact}" >> $GITHUB_ENV - - name: Save debug apk + - name: Upload debug APK uses: actions/upload-artifact@v3 with: name: "${{env.artifact}} debug_apk" - path: _build/*.apk + path: build/outputs/apk/debug/*.apk |
