Fix release upload #62
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Amuzic | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
environment: Development | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set Up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'adopt' | |
cache: gradle | |
- name: Validate Gradle Wrapper | |
uses: gradle/actions/wrapper-validation@v3 | |
- 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@v4 | |
# with: | |
# name: amuzic-unsigned-release | |
# path: ./app/build/outputs/apk/release/*.apk | |
lint: | |
needs: build | |
environment: Development | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'adopt' | |
- name: Run linter | |
run: ./gradlew lint | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: lint-results | |
path: ./app/build/reports/*.html | |
ktlint: | |
needs: build | |
environment: Development | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'adopt' | |
- name: Kotlin linter | |
run: ./gradlew ktlintCheck |