38 lines
1 KiB
YAML
38 lines
1 KiB
YAML
name: Build Release APK
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Set up JDK 17
|
|
uses: actions/setup-java@v4
|
|
with:
|
|
java-version: '17'
|
|
distribution: 'temurin'
|
|
|
|
- name: Setup Android SDK
|
|
uses: android-actions/setup-android@v3
|
|
|
|
- name: Decode keystore
|
|
run: |
|
|
echo "${{ secrets.RELEASE_KEYSTORE_B64 }}" | base64 -d > $RUNNER_TEMP/helios-release.jks
|
|
|
|
- name: Build release APK
|
|
env:
|
|
RELEASE_KEYSTORE_PATH: ${{ runner.temp }}/helios-release.jks
|
|
RELEASE_KEYSTORE_PASS: ${{ secrets.RELEASE_KEYSTORE_PASS }}
|
|
RELEASE_KEY_ALIAS: helios
|
|
RELEASE_KEY_PASS: ${{ secrets.RELEASE_KEYSTORE_PASS }}
|
|
run: ./gradlew assembleRelease
|
|
|
|
- name: Upload APK
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: helios-alarm-clock-debug
|
|
path: app/build/outputs/apk/release/*.apk
|
|
retention-days: 7
|