forked from upstream-mirrors/quik
e150aba72b
Adds steps to list the files in apk directory, rename the apk, and upload it to GitHub Actions.
45 lines
1.2 KiB
YAML
45 lines
1.2 KiB
YAML
name: Build and Test on Pull Request
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
pull_request:
|
|
branches:
|
|
- '**'
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Decode Keystore File
|
|
run: echo "${{ secrets.KEYSTORE_FILE }}" | base64 -d > ${{ github.workspace }}/my-release-key.keystore
|
|
|
|
- name: Set up JDK 17
|
|
uses: actions/setup-java@v4
|
|
with:
|
|
distribution: 'temurin'
|
|
java-version: '17'
|
|
|
|
- name: Build with Gradle
|
|
run: |
|
|
./gradlew assembleNoAnalyticsDebug \
|
|
-Dandroid.injected.signing.store.file=${{ github.workspace }}/my-release-key.keystore
|
|
|
|
- name: Run Tests
|
|
run: ./gradlew test
|
|
|
|
- name: List APK Output Directory
|
|
run: ls -R presentation/build/outputs/apk/noAnalytics/debug
|
|
|
|
- name: Rename APK
|
|
run: mv presentation/build/outputs/apk/noAnalytics/debug/QUIK-v*-noAnalytics-debug.apk presentation/build/outputs/apk/noAnalytics/debug/QUIK-noAnalytics-debug.apk
|
|
|
|
- name: Upload App
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: apk
|
|
path: presentation/build/outputs/apk/noAnalytics/debug/QUIK-noAnalytics-debug.apk
|