diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 869a2cd..1fc316b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,6 +17,16 @@ jobs: java-version: 11 - name: Build the app run: ./gradlew assembleDebug assemble + - name: Sign app APK + uses: r0adkll/sign-android-release@v1 + id: sign_app + with: + releaseDirectory: | + app/build/outputs/apk/release + signingKeyBase64: ${{ secrets.SIGNING_KEY }} + alias: ${{ secrets.SIGNING_ALIAS }} + keyStorePassword: ${{ secrets.SIGNING_KEYSTORE_PW }} + keyPassword: ${{ secrets.SIGNING_KEY_PW }} - name: Upload apk as asset uses: actions/upload-artifact@v2 with: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 51639cc..f05931b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -36,7 +36,7 @@ jobs: repo_token: "${{ secrets.GITHUB_TOKEN }}" title: ${{ github.ref_name }} automatic_release_name: ${{ github.ref_name }} - draft: ${{ !contains(github.ref, 'tags' }} + draft: ${{ !contains(github.ref, 'tags') }} prerelease: ${{contains( github.ref_name , '-') }} files: | app/build/outputs/apk/release/*.apk \ No newline at end of file diff --git a/app/build.gradle b/app/build.gradle index 522b935..9e8a8d6 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -10,8 +10,8 @@ android { applicationId "ch.tiim.markdown_widget" minSdk 24 targetSdk 32 - versionCode 5 - versionName "0.1.4-wip.1" + versionCode 6 + versionName "0.1.4-wip.2" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" }