Build: Android-Signierung hinzugefügt
All checks were successful
Android Build Final Fixed / build-android (push) Successful in 7m13s
All checks were successful
Android Build Final Fixed / build-android (push) Successful in 7m13s
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
name: Android Build Final Fixed
|
||||
on: [push]
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
tags: ["v*"] # Triggert bei v0.1.0, v1.0, etc.
|
||||
|
||||
jobs:
|
||||
build-android:
|
||||
@@ -68,10 +71,7 @@ jobs:
|
||||
echo "${{ secrets.ANDROID_KEYSTORE_BASE64 }}" | tr -d '[:space:]' > keystore.b64
|
||||
base64 -d keystore.b64 > release.keystore
|
||||
|
||||
echo "Suche unsignierte APK..."
|
||||
UNSIGNED_APK=$(find src-tauri/gen/android/app/build/outputs/apk/universal/release -name "*-unsigned.apk" | head -n 1)
|
||||
|
||||
echo "Suche apksigner..."
|
||||
APKSIGNER=$(find $ANDROID_HOME/build-tools -name apksigner | sort -r | head -n 1)
|
||||
|
||||
$APKSIGNER sign --ks release.keystore \
|
||||
@@ -87,8 +87,20 @@ jobs:
|
||||
env:
|
||||
JAVA_HOME: /usr/lib/jvm/java-17-openjdk-amd64
|
||||
|
||||
- name: Upload Signed APK
|
||||
- name: Upload Artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: Marstemedia-Signed
|
||||
path: Marstemedia-Signed.apk
|
||||
|
||||
- name: Create Gitea Release
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
uses: softprops/action-gh-release@v1
|
||||
with:
|
||||
files: Marstemedia-Signed.apk
|
||||
# Gitea braucht manchmal explizit den Namen/Body
|
||||
name: "Release ${{ github.ref_name }}"
|
||||
draft: false
|
||||
prerelease: false
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
Reference in New Issue
Block a user