Skip to content

Commit

Permalink
CI enhancements
Browse files Browse the repository at this point in the history
  • Loading branch information
kirillt committed Jan 20, 2023
1 parent a844787 commit 6938b1b
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 17 deletions.
32 changes: 16 additions & 16 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,23 @@ jobs:
ACRA_PASS: ${{ secrets.ACRARIUM_BASIC_AUTH_PASSWORD }}
ACRA_URI: ${{ secrets.ACRARIUM_URI }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v3

- name: set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'adopt'
cache: gradle
- name: set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'adopt'
cache: gradle

- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Validate Gradle wrapper
uses: gradle/[email protected]

- name: Build Release APK
run: ./gradlew assembleRelease
- name: Build Release APK
run: ./gradlew assembleRelease

- name: Upload Release APK
uses: actions/upload-artifact@v3
with:
name: release-apk
path: ./app/build/outputs/apk/release/app-release.apk
- name: Upload Release APK
uses: actions/upload-artifact@v3
with:
name: ark-rate-release
path: ./app/build/outputs/apk/release/ark-rate-release.apk
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ jobs:
java-version: '11'
distribution: 'adopt'

- name: Validate Gradle wrapper
uses: gradle/[email protected]

- name: Build Release APK
run: ./gradlew assembleRelease

Expand Down
4 changes: 3 additions & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ android {
targetSdk 33
versionCode 1
versionName "1.0"
setProperty("archivesBaseName", "ark-rate")

def login = System.getenv("ACRA_LOGIN") ?: ""
def password = System.getenv("ACRA_PASS") ?: ""
def uri = System.getenv("ACRA_URI") ?: ""
Expand Down Expand Up @@ -104,4 +106,4 @@ dependencies {
implementation 'ch.acra:acra-http:5.9.6'
implementation 'ch.acra:acra-dialog:5.9.6'
implementation 'com.github.SimpleMobileTools:Simple-Commons:7e0240b1e3'
}
}

0 comments on commit 6938b1b

Please sign in to comment.