diff options
Diffstat (limited to '.github/workflows')
| -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 |
