fix: upload only apk workflow artifacts #101
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: Continuous Builder | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- '**' | |
paths-ignore: | |
- 'metadata/**' | |
- 'legal/**' | |
- '**.md' | |
- '**.csv' | |
- '**.py' | |
- 'app/src/release/generated/baselineProfiles/**-prof.txt' | |
- 'app/**.pro' | |
- 'LICENSE' | |
- '.github/workflows/release-builder.yml' | |
- '.github/workflows/update-device-catalog.yml' | |
- '.github/FUNDING.yml' | |
- '.editorconfig' | |
- '.idea/**' | |
pull_request: | |
jobs: | |
build: | |
name: Continuous Builder | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- name: Setup JDK | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'zulu' | |
java-version: '17' | |
- name: Build APK | |
run: | | |
./gradlew assembleRelease --stacktrace | |
- name: List build output | |
run: ls app/build/outputs/apk/release/ | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
path: app/build/outputs/apk/release/*.apk | |
if-no-files-found: error |