Compare commits
3 Commits
v1.0.0
...
b0765795b8
| Author | SHA1 | Date | |
|---|---|---|---|
| b0765795b8 | |||
| 489c0d5c4f | |||
| 967dc7d09a |
@@ -3,7 +3,8 @@ name: Build and Release to F-Droid
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- 'v*'
|
||||
- '*'
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build-and-deploy:
|
||||
@@ -27,8 +28,7 @@ jobs:
|
||||
- name: Install dependencies
|
||||
run: flutter pub get
|
||||
|
||||
# ADD THIS NEW STEP
|
||||
- name: Setup Android Keystore
|
||||
- name: Setup Android Keystore
|
||||
env:
|
||||
KEYSTORE_BASE64: ${{ secrets.KEYSTORE_BASE64 }}
|
||||
KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }}
|
||||
@@ -37,7 +37,6 @@ jobs:
|
||||
# Decode the base64 string back into the binary .jks file
|
||||
echo "$KEYSTORE_BASE64" | base64 --decode > android/app/upload-keystore.jks
|
||||
|
||||
# Create the key.properties file that build.gradle expects
|
||||
echo "storePassword=$KEY_PASSWORD" > android/key.properties
|
||||
echo "keyPassword=$KEY_PASSWORD" >> android/key.properties
|
||||
echo "keyAlias=$KEY_ALIAS" >> android/key.properties
|
||||
@@ -59,9 +58,7 @@ jobs:
|
||||
run: |
|
||||
mkdir -p fdroid
|
||||
cd fdroid
|
||||
|
||||
# Try to download the existing repo/ folder from Hetzner to keep older versions and the keystore
|
||||
# If it fails (first time), we just initialize a new one
|
||||
|
||||
sshpass -p "$PASS" scp -o StrictHostKeyChecking=no -r $USER@$HOST:dev/fdroid/repo . || fdroid init
|
||||
|
||||
- name: Copy new APK to repo
|
||||
|
||||
Reference in New Issue
Block a user