diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a3bab93a..c8ee2192 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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/wrapper-validation-action@v1.0.5 + + - 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 diff --git a/app/build.gradle b/app/build.gradle index dd0abe75..165a3afc 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -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 } diff --git a/testRelease.jks b/testRelease.jks deleted file mode 100644 index 18b818e4..00000000 Binary files a/testRelease.jks and /dev/null differ