forked from Schanbro/WeekFocus
fix
This commit is contained in:
1 parent
9ad23b2a3b
commit
1bfe36309c
1 file changed
+14
-7
@@ -70,23 +70,29 @@ jobs:
|
||||
|
||||
VERSION="${GITHUB_REF_NAME#v}"
|
||||
|
||||
if [ -z "$VERSION" ] || [ "$VERSION" = "$GITHUB_REF_NAME" ]; then
|
||||
echo "Ungültiger Git-Tag: '$GITHUB_REF_NAME'"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Baue Version: $VERSION"
|
||||
|
||||
./gradlew assembleRelease \
|
||||
--no-daemon \
|
||||
-PversionNameOverride="$VERSION"
|
||||
|
||||
echo "Erzeugte APK-Dateien:"
|
||||
find app/build/outputs -type f -name "*.apk" -print
|
||||
|
||||
APK_SOURCE="$(find app/build/outputs/apk/release -maxdepth 1 -type f -name "*.apk" | head -n 1)"
|
||||
|
||||
if [ -z "$APK_SOURCE" ]; then
|
||||
echo "Keine Release-APK gefunden."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
APK_DIR="app/build/outputs/apk/release"
|
||||
APK_NAME="WeekFocus-${VERSION}.apk"
|
||||
APK_TARGET="$APK_DIR/$APK_NAME"
|
||||
|
||||
mv "$APK_DIR/app-release.apk" "$APK_DIR/$APK_NAME"
|
||||
mv "$APK_SOURCE" "$APK_TARGET"
|
||||
|
||||
echo "APK erstellt: $APK_DIR/$APK_NAME"
|
||||
echo "APK erstellt: $APK_TARGET"
|
||||
ls -lh "$APK_DIR"
|
||||
env:
|
||||
KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}
|
||||
@@ -94,6 +100,7 @@ jobs:
|
||||
KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }}
|
||||
|
||||
|
||||
|
||||
- name: Release in Gitea erstellen
|
||||
uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
|
||||
Reference in new issue
Block a user