Skip to content

Commit

Permalink
Update CI/CD
Browse files Browse the repository at this point in the history
  • Loading branch information
shubertm committed Jun 22, 2024
1 parent 8c90fa3 commit 4ad2117
Showing 1 changed file with 17 additions and 8 deletions.
25 changes: 17 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ jobs:
runs-on: ubuntu-latest
environment: Development
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up JDK 17
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'adopt'
Expand All @@ -19,11 +19,20 @@ jobs:
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v1.0.5

- name: Build Debug APK
run: ./gradlew assembleDebug

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

- name: Upload Debug APK
uses: actions/upload-artifact@v4
with:
name: amuzic-debug
path: ./app/build/outputs/apk/debug/*.apk

- name: Upload Release APK
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: amuzic-release
path: ./app/build/outputs/apk/release/*.apk
Expand All @@ -33,18 +42,18 @@ jobs:
environment: Development
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up JDK 17
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'adopt'

- name: Run linter
run: ./gradlew lint

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: lint-results
path: ./app/build/reports/*.html
Expand All @@ -54,10 +63,10 @@ jobs:
environment: Development
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up JDK 17
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'adopt'
Expand Down

0 comments on commit 4ad2117

Please sign in to comment.