Rename buid-preprod to buid-preprod.yml #3
This file contains hidden or 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 Release APK | |
on: | |
push: | |
branches: ["**"] | |
pull_request: | |
branches: ["**"] | |
jobs: | |
build-release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: 17 | |
- name: Grant permission to Gradle | |
run: chmod +x ./gradlew | |
- name: Build Release APK | |
run: ./gradlew assembleRelease | |
- name: Upload Release APK | |
uses: actions/upload-artifact@v4 | |
with: | |
name: app-release-apk | |
path: app/build/outputs/apk/release/*.apk |