Fix warnings #95
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 APK | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- '**' | |
paths-ignore: | |
- 'README.md' | |
- 'fastlane/**' | |
- 'assets/**' | |
- '.github/**/*.md' | |
- '.github/FUNDING.yml' | |
- '.github/ISSUE_TEMPLATE/**' | |
permissions: | |
contents: write | |
discussions: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 21 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '21' | |
distribution: 'temurin' | |
- name: Set Up Gradle | |
uses: gradle/actions/setup-gradle@v4 | |
with: | |
cache-cleanup: on-success | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Build with Gradle | |
run: ./gradlew build | |
- name: Upload debug APK | |
uses: actions/upload-artifact@v4 | |
with: | |
name: app-debug | |
path: "app/build/outputs/apk/universal/debug/*" | |
- name: Sign APKs | |
uses: ilharp/[email protected] | |
with: | |
releaseDir: app/build/outputs/apk/universal/release | |
signingKey: ${{ secrets.RELEASE_KEYSTORE }} | |
keyAlias: ${{ secrets.ALIAS }} | |
keyStorePassword: ${{ secrets.RELEASE_KEYSTORE_PASSWORD }} | |
keyPassword: ${{ secrets.RELEASE_KEYSTORE_PASSWORD }} | |
- name: Move signed APK | |
run: | | |
mkdir app/build/outputs/apk/universal/release/out && mv app/build/outputs/apk/universal/release/app-universal-release-unsigned-signed.apk app/build/outputs/apk/universal/release/out/app-release.apk | |
- name: Upload release APK | |
uses: actions/upload-artifact@v4 | |
with: | |
name: app-release | |
path: "app/build/outputs/apk/universal/release/out/*" |