Skip to content

Commit

Permalink
Signing with a new keystore using GitHub Actions, bump JDK version
Browse files Browse the repository at this point in the history
  • Loading branch information
kirillt committed Dec 16, 2023
1 parent 0dce082 commit 2a34d10
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 9 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,27 @@ jobs:
runs-on: ubuntu-latest
environment: Development
env:
ACRA_LOGIN: ${{ secrets.ACRARIUM_BASIC_AUTH_LOGIN }}
ACRA_PASS: ${{ secrets.ACRARIUM_BASIC_AUTH_PASSWORD }}
ACRA_URI: ${{ secrets.ACRARIUM_URI }}
ACRA_LOGIN: ${{ secrets.ACRARIUM_BASIC_AUTH_LOGIN }}
ACRA_PASS: ${{ secrets.ACRARIUM_BASIC_AUTH_PASSWORD }}
ACRA_URI: ${{ secrets.ACRARIUM_URI }}
steps:
- uses: actions/checkout@v3

- name: Set up JDK 11
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '11'
java-version: '17'
distribution: 'adopt'
cache: gradle

- name: Validate Gradle wrapper
uses: gradle/[email protected]

- name: Decrypt the keystore for signing
run: |
echo "${{ secrets.KEYSTORE_ENCRYPTED }}" > keystore.asc
gpg -d --passphrase "${{ secrets.KEYSTORE_PASSWORD }}" --batch keystore.asc > keystore.jks
- name: Build Release APK
run: ./gradlew assembleRelease

Expand Down
8 changes: 4 additions & 4 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ android {
}
signingConfigs {
testRelease {
storeFile project.rootProject.file('./testRelease.jks')
storePassword "arkmemo"
keyAlias "key0"
keyPassword "arkmemo"
storeFile project.rootProject.file('keystore.jks')
storePassword "sw0rdf1sh"
keyAlias "ark-builders-test"
keyPassword "rybamech"
v1SigningEnabled true
v2SigningEnabled true
}
Expand Down
Binary file removed testRelease.jks
Binary file not shown.

0 comments on commit 2a34d10

Please sign in to comment.