mirror of
https://github.com/usetrmnl/trmnl-android.git
synced 2026-04-29 13:35:26 -07:00
[FIXED] F-droid build workflow.
This commit is contained in:
@@ -25,9 +25,16 @@ jobs:
|
||||
|
||||
- name: Setup Gradle
|
||||
uses: gradle/actions/setup-gradle@v4
|
||||
|
||||
- name: Decode keystore from base64
|
||||
run: |
|
||||
echo "${{ secrets.KEYSTORE_BASE64 }}" | base64 -d > keystore/trmnl-app-release.keystore
|
||||
|
||||
- name: Build F-Droid APK
|
||||
run: ./gradlew buildFDroid
|
||||
env:
|
||||
KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}
|
||||
KEY_ALIAS: ${{ secrets.KEY_ALIAS }}
|
||||
|
||||
- name: Extract version name
|
||||
id: version
|
||||
@@ -39,13 +46,13 @@ jobs:
|
||||
- name: Rename APK
|
||||
run: |
|
||||
mkdir -p artifact
|
||||
cp app/build/outputs/apk/fdroid/release/app-fdroid-release-unsigned.apk artifact/trmnl-mirror-fdroid-v${{ steps.version.outputs.VERSION }}-unsigned.apk
|
||||
cp app/build/outputs/apk/fdroid/release/app-fdroid-release.apk artifact/trmnl-mirror-fdroid-v${{ steps.version.outputs.VERSION }}.apk
|
||||
|
||||
- name: Upload F-Droid APK
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: trmnl-mirror-fdroid-unsigned
|
||||
path: artifact/trmnl-mirror-fdroid-v${{ steps.version.outputs.VERSION }}-unsigned.apk
|
||||
name: trmnl-mirror-fdroid-signed
|
||||
path: artifact/trmnl-mirror-fdroid-v${{ steps.version.outputs.VERSION }}.apk
|
||||
# Use maximum allowed retention period
|
||||
# https://github.com/actions/upload-artifact?tab=readme-ov-file#retention-period
|
||||
retention-days: 90
|
||||
|
||||
Reference in New Issue
Block a user