Skip to content

Commit

Permalink
updated github action build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
suyash01 committed Jun 21, 2024
1 parent fc967a1 commit c455ef4
Showing 1 changed file with 11 additions and 15 deletions.
26 changes: 11 additions & 15 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,17 @@ jobs:
- name: Clone repo
uses: actions/checkout@v4

- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v1

- name: Setup Android SDK
run: |
${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager "build-tools;29.0.3"
- name: Set up JDK
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: 17
distribution: adopt
java-version: 21
distribution: temurin
cache: gradle

- name: Make gradlew executable
run: chmod +x ./gradlew
- name: Grant execute permission for gradlew
run: chmod +x gradlew

- name: Execute Gradle build
- name: Build with Gradle
run: ./gradlew app:assembleRelease

- name: Get tag name
Expand Down Expand Up @@ -62,16 +56,18 @@ jobs:
- name: Create Release
if: startsWith(github.ref, 'refs/tags/') && github.repository == 'suyash01/credit-manager'
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ env.VERSION_TAG }}
name: Credit Manager ${{ env.VERSION_TAG }}
body: |
---
### Checksums
| Variant | SHA-256 |
| ------- | ------- |
| Universal | ${{ env.APK_UNIVERSAL_SHA }}
| Universal | ${{ env.APK_UNIVERSAL_SHA }} |
files: |
credit-manager-${{ env.VERSION_TAG }}.apk
draft: true
Expand Down

0 comments on commit c455ef4

Please sign in to comment.