Skip to content

Commit

Permalink
fix build issue
Browse files Browse the repository at this point in the history
  • Loading branch information
NewYearNewPhil committed Oct 13, 2024
1 parent a551342 commit 5c72d34
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/android-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
env:
ENCODED_KEYSTORE: ${{ secrets.KEYSTORE_BASE64 }}
run: |
echo $ENCODED_KEYSTORE | base64 -di > keystore.jks
echo $ENCODED_KEYSTORE | base64 -di > app/keystore.jks
- name: Grant execute permission for gradlew
run: chmod +x gradlew
Expand All @@ -39,11 +39,6 @@ jobs:
KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }}
run: ./gradlew assembleRelease

- name: Rename APK
run: |
mv app/build/outputs/apk/release/app-release.apk \
app/build/outputs/apk/release/no-thanks-${VERSION_NAME}-release.apk
- name: Create Release
id: create_release
uses: actions/create-release@v1
Expand All @@ -62,5 +57,5 @@ jobs:
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./app/build/outputs/apk/release/app-release.apk
asset_name: app-${{ env.VERSION_NAME }}.apk
asset_name: no-thanks-${{ env.VERSION_NAME }}.apk
asset_content_type: application/vnd.android.package-archive
2 changes: 1 addition & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ android {

signingConfigs {
create("release") {
storeFile = file(System.getenv("KEYSTORE_FILE") ?: "keystore.jks")
storeFile = file("keystore.jks")
storePassword = System.getenv("KEYSTORE_PASSWORD")
keyAlias = System.getenv("KEY_ALIAS")
keyPassword = System.getenv("KEY_PASSWORD")
Expand Down

0 comments on commit 5c72d34

Please sign in to comment.