ci: create release file #17
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: CI | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: | |
- dev | |
- master | |
- extended | |
- stable | |
- '**-feature-**' | |
paths-ignore: | |
- 'README.md' | |
- 'doc/**' | |
- 'fastlane/**' | |
- 'assets/**' | |
- '.github/**/*.md' | |
- '.github/FUNDING.yml' | |
- '.github/ISSUE_TEMPLATE/**' | |
push: | |
branches: | |
- dev | |
- master | |
- extended | |
- stable | |
- '**-feature-**' | |
paths-ignore: | |
- 'README.md' | |
- 'doc/**' | |
- 'fastlane/**' | |
- 'assets/**' | |
- '.github/**/*.md' | |
- '.github/FUNDING.yml' | |
- '.github/ISSUE_TEMPLATE/**' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: write-all | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up JDK | |
uses: actions/setup-java@v4 | |
with: | |
java-version: 17 | |
distribution: "temurin" | |
cache: 'gradle' | |
- name: Build debug APK and run jvm tests | |
run: ./gradlew assembleDebug lintDebug testDebugUnitTest --stacktrace -DskipFormatKtlint | |
- name: Generate checksum | |
run: | | |
sha256sum app/build/outputs/apk/debug/*.apk > app/build/outputs/apk/debug/checksums.txt | |
echo "::notice::$(cat app/build/outputs/apk/debug/checksums.txt)" | |
- name: Upload APK | |
uses: actions/upload-artifact@v4 | |
with: | |
name: app | |
path: app/build/outputs/apk/debug/*.apk |