Skip to content

Commit

Permalink
Merge branch 'main' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
techmaved committed Dec 15, 2023
2 parents 19926c4 + 980bc84 commit 2c7e7bd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
15 changes: 6 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,20 @@ jobs:
buildRelease:
name: Build an release
runs-on: ubuntu-latest
environment: Release
if: startsWith(github.ref, 'refs/tags/')

steps:
- uses: actions/checkout@v4

- name: Setup JAVA 17
uses: actions/setup-java@v4
with:
distribution: 'corretto'
java-version: 17

- name: Setup Android SDK
uses: android-actions/setup-android@v3

- name: Cache Gradle and wrapper
uses: actions/cache@v2
with:
Expand All @@ -32,15 +35,11 @@ jobs:
- name: Decode Keystore
env:
ENCODED_STRING: ${{ secrets.SIGNING_KEY_STORE_BASE64 }}
SIGNING_KEY_STORE_PATH: ${{ secrets.SIGNING_KEY_STORE_PATH }}

run: |
echo $ENCODED_STRING > keystore-b64.txt
base64 -d keystore-b64.txt > $env:SIGNING_KEY_STORE_PATH
echo $ENCODED_STRING | base64 --decode > app/keystore.jks
- name: Build Release apk
env:
SIGNING_KEY_STORE_PATH: ${{ secrets.SIGNING_KEY_STORE_PATH }}
SIGNING_KEY_STORE_PATH: app/keystore.jks
SIGNING_KEY_ALIAS: ${{ secrets.SIGNING_KEY_ALIAS }}
SIGNING_KEY_PASSWORD: ${{ secrets.SIGNING_KEY_PASSWORD }}
SIGNING_STORE_PASSWORD: ${{ secrets.SIGNING_STORE_PASSWORD }}
Expand All @@ -52,7 +51,6 @@ jobs:
name: release-artifacts
path: app/build/outputs/apk/release/


- name: Create Github Pre Release Release
if: ${{ endsWith(github.ref_name, 'beta') }}
uses: softprops/action-gh-release@v1
Expand All @@ -61,7 +59,6 @@ jobs:
prerelease: true
files: |
app/build/outputs/apk/release/app-release.apk
- name: Create Github Release Release
if: ${{ !endsWith(github.ref_name, 'beta') }}
uses: softprops/action-gh-release@v1
Expand Down
2 changes: 2 additions & 0 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ android {
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro"
)

signingConfig = signingConfigs["release"]
}

create("customDebugType") {
Expand Down

0 comments on commit 2c7e7bd

Please sign in to comment.