From 54448e9c9268b04d87366aee2c18f770ffef156f Mon Sep 17 00:00:00 2001 From: Patrick Helm Date: Sun, 2 Oct 2022 17:11:06 +0200 Subject: [PATCH 1/8] release app on github the release can be further customized with the provided actions References #43 --- .github/workflows/android.yml | 1 + .github/workflows/release.yml | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index 0fc867b..f80e55f 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -14,5 +14,6 @@ jobs: with: distribution: 'temurin' java-version: 21 + cache: 'gradle' - name: Build with Gradle run: ./gradlew build diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..5be034b --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,33 @@ +name: Release + +on: + push: + tags: + - 'v*' + +jobs: + release: + runs-on: ubuntu-22.04 + + steps: + - uses: actions/checkout@v3 + - name: set up JDK 11 + uses: actions/setup-java@v3 + with: + java-version: 11 + distribution: 'temurin' + cache: 'gradle' + - name: Build with Gradle + run: ./gradlew buildRelease + - name: Sign app + uses: ilharp/sign-android-release@v1 + id: sign_app + with: + keyAlias: ${{ secrets.ANDROID_KEY_ALIAS }} + keyPassword: ${{ secrets.ANDROID_KEY_PASSWORD }} + keyStorePassword: ${{ secrets.ANDROID_KEYSTORE_PASSWORD }} + signingKey: ${{ secrets.ANDROID_SIGNING_KEY }} + - name: Create Release + uses: softprops/action-gh-release@v1 + with: + files: ${{steps.sign_app.outputs.signedFile}} From 7d9103b893bfddd3904f3747945d36dc271745aa Mon Sep 17 00:00:00 2001 From: enoy19 Date: Fri, 25 Jul 2025 14:58:23 +0200 Subject: [PATCH 2/8] testing actions --- .github/workflows/release.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5be034b..19ddb18 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,6 +4,8 @@ on: push: tags: - 'v*' + branches: + - publish-apk-on-github # TODO: remove this jobs: release: From 018cdc2ef9e82f184a3e73a3c5a9fe1609de2be3 Mon Sep 17 00:00:00 2001 From: enoy19 Date: Fri, 25 Jul 2025 15:06:59 +0200 Subject: [PATCH 3/8] bumped java version to 21 in release action --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 19ddb18..a893571 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,10 +13,10 @@ jobs: steps: - uses: actions/checkout@v3 - - name: set up JDK 11 + - name: set up JDK 21 uses: actions/setup-java@v3 with: - java-version: 11 + java-version: 21 distribution: 'temurin' cache: 'gradle' - name: Build with Gradle From 6dbe216d2ef43a2069c7dfa250e0890915f09d84 Mon Sep 17 00:00:00 2001 From: enoy19 Date: Mon, 28 Jul 2025 16:06:28 +0200 Subject: [PATCH 4/8] using r0adkll/sign-android-release@v1 --- .github/workflows/release.yml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a893571..c2053bd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -22,14 +22,15 @@ jobs: - name: Build with Gradle run: ./gradlew buildRelease - name: Sign app - uses: ilharp/sign-android-release@v1 + uses: r0adkll/sign-android-release@v1 id: sign_app with: - keyAlias: ${{ secrets.ANDROID_KEY_ALIAS }} - keyPassword: ${{ secrets.ANDROID_KEY_PASSWORD }} + releaseDirectory: app/build/outputs/apk/release + signingKeyBase64: ${{ secrets.ANDROID_SIGNING_KEY }} + alias: ${{ secrets.ANDROID_KEY_ALIAS }} keyStorePassword: ${{ secrets.ANDROID_KEYSTORE_PASSWORD }} - signingKey: ${{ secrets.ANDROID_SIGNING_KEY }} - - name: Create Release - uses: softprops/action-gh-release@v1 - with: - files: ${{steps.sign_app.outputs.signedFile}} + keyPassword: ${{ secrets.ANDROID_KEY_PASSWORD }} +# - name: Create Release +# uses: softprops/action-gh-release@v1 +# with: +# files: ${{steps.sign_app.outputs.signedReleaseFile}} From 696872fea3d4ee077945f3badfb00b4f11dec7d2 Mon Sep 17 00:00:00 2001 From: enoy19 Date: Mon, 28 Jul 2025 16:22:03 +0200 Subject: [PATCH 5/8] using assembleRelease to actually build an unsigned APK --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c2053bd..1005130 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -20,7 +20,7 @@ jobs: distribution: 'temurin' cache: 'gradle' - name: Build with Gradle - run: ./gradlew buildRelease + run: ./gradlew assembleRelease - name: Sign app uses: r0adkll/sign-android-release@v1 id: sign_app From f98841824cbb98c4c3cdefdbd3014b47ae00e3bd Mon Sep 17 00:00:00 2001 From: enoy19 Date: Mon, 28 Jul 2025 16:30:59 +0200 Subject: [PATCH 6/8] create release with signed apk --- .github/workflows/release.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1005130..1f31ea6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -30,7 +30,7 @@ jobs: alias: ${{ secrets.ANDROID_KEY_ALIAS }} keyStorePassword: ${{ secrets.ANDROID_KEYSTORE_PASSWORD }} keyPassword: ${{ secrets.ANDROID_KEY_PASSWORD }} -# - name: Create Release -# uses: softprops/action-gh-release@v1 -# with: -# files: ${{steps.sign_app.outputs.signedReleaseFile}} + - name: Create Release + uses: softprops/action-gh-release@v1 + with: + files: ${{steps.sign_app.outputs.signedReleaseFile}} From b4b709a0a7694c7ad6e6dd2adb9c63ebe0b2b898 Mon Sep 17 00:00:00 2001 From: enoy19 Date: Mon, 28 Jul 2025 19:01:55 +0200 Subject: [PATCH 7/8] updated build version for release workflow --- .github/workflows/release.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1f31ea6..b145bea 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -30,6 +30,8 @@ jobs: alias: ${{ secrets.ANDROID_KEY_ALIAS }} keyStorePassword: ${{ secrets.ANDROID_KEYSTORE_PASSWORD }} keyPassword: ${{ secrets.ANDROID_KEY_PASSWORD }} + env: + BUILD_TOOLS_VERSION: "34.0.0" - name: Create Release uses: softprops/action-gh-release@v1 with: From de62b61957a30c85d929455b93bd091dcfb01f24 Mon Sep 17 00:00:00 2001 From: enoy19 Date: Mon, 28 Jul 2025 19:06:05 +0200 Subject: [PATCH 8/8] remove test branch trigger from release workflow --- .github/workflows/release.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b145bea..4f227ea 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,8 +4,6 @@ on: push: tags: - 'v*' - branches: - - publish-apk-on-github # TODO: remove this jobs: release: