Compare commits

...
15 Commits
Author SHA1 Message Date
robin 4a43dbccaf Merge branch 'chore' 2026-10-03 15:37:54 +02:00
robin 57f1c727be chore: feat: add CHANGELOG
Build & Release Android App / build (push) Successful in 12m19s
2026-10-03 15:17:25 +02:00
robin 78d23f9cda fix
Build & Release Android App / build (push) Successful in 29m7s
2026-10-03 12:39:37 +02:00
robin 3472dc5e7f README.md hinzugefügt 2026-10-03 10:11:10 +00:00
robin 1bfe36309c fix
Build & Release Android App / build (push) Successful in 11m10s
2026-09-29 20:39:36 +02:00
robin 9ad23b2a3b fix
Build & Release Android App / build (push) Failing after 8m48s
2026-09-29 20:30:18 +02:00
robin 658f6a9506 fix
Build & Release Android App / build (push) Failing after 10m18s
2026-09-29 20:17:41 +02:00
robin f9b666fe15 chore: fix for 1.0.3 2026-09-29 20:10:43 +02:00
robin b1977d790d chore: fix for v1.0.2
Build & Release Android App / build (push) Successful in 12m16s
2026-09-29 19:53:01 +02:00
robin 3d5cc10a1a chore: fix for v1.0.1
Build & Release Android App / build (push) Failing after 5m4s
2026-09-29 19:28:26 +02:00
robin 52a758ff16 chore: add CHANGELOG
Build & Release Android App / build (push) Failing after 9m26s
2026-09-29 19:18:16 +02:00
robin 7dde81a715 chore: v1.0.1 2026-09-29 19:17:53 +02:00
robin 2d70201c25 Merge pull request 'Feat/list improvement' (#7) from feat/list-improvement into main
Build & Release Android App / build (push) Successful in 13m6s
Reviewed-on: #7
2026-09-29 16:37:47 +00:00
robin 9b0a05e5ad Merge branch 'main' into feat/list-improvement 2026-09-29 16:37:38 +00:00
robin e1e7742ecb Merge pull request 'Initial' (#4) from initial into main
Reviewed-on: #4
2026-09-19 17:29:57 +00:00
4 changed files with 89 additions and 5 deletions

No files matched your search

+69 -3
View File
@@ -60,20 +60,86 @@ jobs:
echo "sdk.dir=$SDK_PATH" > "$GITHUB_WORKSPACE/local.properties"
- name: Keystore dekodieren
env:
KEYSTORE_BASE64: ${{ secrets.KEYSTORE_BASE64 }}
run: |
echo "${{ secrets.KEYSTORE_BASE64 }}" | base64 -d > "$RUNNER_TEMP/release.keystore"
echo "$KEYSTORE_BASE64" | base64 -d > "$RUNNER_TEMP/release.keystore"
echo "KEYSTORE_PATH=$RUNNER_TEMP/release.keystore" >> $GITHUB_ENV
- name: Android Release APK bauen
run: ./gradlew assembleRelease --no-daemon
run: |
set -euo pipefail
VERSION="${GITHUB_REF_NAME#v}"
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" ! -name "*unsigned*" | 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_SOURCE" "$APK_TARGET"
"$ANDROID_HOME/build-tools/36.0.0/apksigner" verify --verbose "$APK_TARGET"
echo "APK erstellt: $APK_TARGET"
ls -lh "$APK_DIR"
env:
KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}
KEY_ALIAS: ${{ secrets.KEY_ALIAS }}
KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }}
- name: Release-Notes aus CHANGELOG.md extrahieren
run: |
VERSION="${GITHUB_REF_NAME#v}"
NOTES_FILE="$RUNNER_TEMP/release_notes.md"
if [ -f CHANGELOG.md ]; then
awk -v ver="$VERSION" '
/^##[[:space:]]/ {
if (found) exit
line = $0
sub(/^##[[:space:]]+/, "", line)
sub(/^\[?v?/, "", line)
if (substr(line, 1, length(ver)) == ver) {
rest = substr(line, length(ver) + 1)
if (rest ~ /^([^0-9.]|$)/) { found = 1 }
}
next
}
found { print }
' CHANGELOG.md > "$NOTES_FILE"
else
: > "$NOTES_FILE"
fi
if ! grep -q '[^[:space:]]' "$NOTES_FILE"; then
echo "Keine Release-Notes für Version $VERSION vorhanden." > "$NOTES_FILE"
fi
echo "Release-Notes:"
cat "$NOTES_FILE"
- name: Release in Gitea erstellen
uses: softprops/action-gh-release@v2
with:
files: app/build/outputs/apk/release/*.apk
tag_name: ${{ github.ref_name }}
name: ${{ github.ref_name }}
body_path: ${{ runner.temp }}/release_notes.md
files: app/build/outputs/apk/release/WeekFocus-*.apk
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+6
View File
@@ -0,0 +1,6 @@
# Changelog
## [1.1.0] - 2026-10-03
### New
- chore: auto-generate apk files #6
+1
View File
@@ -0,0 +1 @@
[![Get it on Obtainium](https://raw.githubusercontent.com/ImranR98/Obtainium/main/assets/graphics/badge_obtainium.png)](https://apps.obtainium.imranr.dev/redirect?r=obtainium://add/https://git.schamagusa.de/Schanbro/WeekFocus/releases)
+13 -2
View File
@@ -3,6 +3,17 @@ plugins {
alias(libs.plugins.kotlin.compose)
}
val tagVersion = (project.findProperty("versionNameOverride") as String?) ?: "0.0.0-dev"
// "1.2.3" oder "1.2.3-alpha9" -> Kern "1.2.3" für den versionCode
val core = tagVersion
.removePrefix("v")
.substringBefore("-")
val parts = core.split(".").map { it.toIntOrNull() ?: 0 }
val major = parts.getOrElse(0) { 0 }
val minor = parts.getOrElse(1) { 0 }
val patch = parts.getOrElse(2) { 0 }
android {
namespace = "de.schanbro.weekfocus"
compileSdk {
@@ -13,8 +24,8 @@ android {
applicationId = "de.schanbro.weekfocus"
minSdk = 29
targetSdk = 37
versionCode = 1
versionName = "1.0"
versionCode = major * 10000 + minor * 100 + patch
versionName = tagVersion
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}