Compare commits
4
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
792047eae4 | ||
|
|
78fd859889 | ||
|
|
b93d23f31c | ||
|
|
648da0fb37 |
No files matched your search
@@ -64,6 +64,51 @@ jobs:
|
|||||||
echo "$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
|
echo "KEYSTORE_PATH=$RUNNER_TEMP/release.keystore" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
- name: Release-Notes aus CHANGELOG.md extrahieren
|
||||||
|
run: |
|
||||||
|
VERSION="${GITHUB_REF_NAME#v}"
|
||||||
|
NOTES_FILE="$RUNNER_TEMP/release_notes.md"
|
||||||
|
|
||||||
|
extract_notes() {
|
||||||
|
awk -v ver="$1" '
|
||||||
|
/^##[[: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
|
||||||
|
}
|
||||||
|
|
||||||
|
if [ -f CHANGELOG.md ]; then
|
||||||
|
extract_notes "$VERSION" > "$NOTES_FILE"
|
||||||
|
|
||||||
|
# Kein eigener Eintrag für die Beta? Dann den der Basisversion nehmen.
|
||||||
|
BASE="${VERSION%%-*}"
|
||||||
|
if ! grep -q '[^[:space:]]' "$NOTES_FILE" && [ "$BASE" != "$VERSION" ]; then
|
||||||
|
extract_notes "$BASE" > "$NOTES_FILE"
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
: > "$NOTES_FILE"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# In die APK einbetten, aber nur, wenn es echte Notes gibt
|
||||||
|
mkdir -p app/src/main/assets
|
||||||
|
if grep -q '[^[:space:]]' "$NOTES_FILE"; then
|
||||||
|
cp "$NOTES_FILE" app/src/main/assets/release_notes.md
|
||||||
|
else
|
||||||
|
echo "Keine Release-Notes für Version $VERSION vorhanden." > "$NOTES_FILE"
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Release-Notes:"
|
||||||
|
cat "$NOTES_FILE"
|
||||||
|
|
||||||
- name: Android Release APK bauen
|
- name: Android Release APK bauen
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
@@ -101,41 +146,6 @@ jobs:
|
|||||||
KEY_ALIAS: ${{ secrets.KEY_ALIAS }}
|
KEY_ALIAS: ${{ secrets.KEY_ALIAS }}
|
||||||
KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }}
|
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
|
|
||||||
|
|
||||||
# In die APK einbetten, aber nur, wenn es echte Notes gibt
|
|
||||||
mkdir -p app/src/main/assets
|
|
||||||
if grep -q '[^[:space:]]' "$NOTES_FILE"; then
|
|
||||||
cp "$NOTES_FILE" app/src/main/assets/release_notes.md
|
|
||||||
else
|
|
||||||
echo "Keine Release-Notes für Version $VERSION vorhanden." > "$NOTES_FILE"
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "Release-Notes:"
|
|
||||||
cat "$NOTES_FILE"
|
|
||||||
|
|
||||||
- name: Release in Gitea erstellen und APK hochladen
|
- name: Release in Gitea erstellen und APK hochladen
|
||||||
env:
|
env:
|
||||||
TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|||||||
@@ -1,5 +1,9 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## [1.4.2] - 2026-10-30
|
||||||
|
### New
|
||||||
|
* show changelog after update
|
||||||
|
|
||||||
## [1.4.1] - 2026-10-30
|
## [1.4.1] - 2026-10-30
|
||||||
### New
|
### New
|
||||||
* about screen
|
* about screen
|
||||||
|
|||||||
@@ -7,11 +7,11 @@
|
|||||||
|
|
||||||
**One word. One week. One quality to grow.**
|
**One word. One week. One quality to grow.**
|
||||||
|
|
||||||
<a href="https://apps.obtainium.imranr.dev/redirect?r=obtainium://app/%7B%22id%22%3A%22de.schanbro.weekfocus%22%2C%22url%22%3A%22https%3A%2F%2Fgit.schamagusa.de%2Frobin%2FWeekFocus%22%2C%22author%22%3A%22robin%22%2C%22name%22%3A%22WeekFocus%22%2C%22overrideSource%22%3A%22Codeberg%22%7D">
|
<a href="https://apps.obtainium.imranr.dev/redirect?r=obtainium://app/%7B%22id%22%3A%22de.schanbro.weekfocus%22%2C%22url%22%3A%22https%3A%2F%2Fgit.schamagusa.de%Schanbro%2FWeekFocus%22%2C%22author%22%3A%Schanbro%22%2C%22name%22%3A%22WeekFocus%22%2C%22overrideSource%22%3A%22Codeberg%22%7D">
|
||||||
<img src="https://raw.githubusercontent.com/ImranR98/Obtainium/main/assets/graphics/badge_obtainium.png" alt="Get it on Obtainium" height="64">
|
<img src="https://raw.githubusercontent.com/ImranR98/Obtainium/main/assets/graphics/badge_obtainium.png" alt="Get it on Obtainium" height="64">
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
[](https://git.schamagusa.de/robin/WeekFocus/releases)
|
[](https://git.schamagusa.de/Schanbro/WeekFocus/releases)
|
||||||
[](LICENSE)
|
[](LICENSE)
|
||||||
<!--[](https://weblate.schamagusa.de/engage/weekfocus/)-->
|
<!--[](https://weblate.schamagusa.de/engage/weekfocus/)-->
|
||||||
|
|
||||||
@@ -22,8 +22,8 @@
|
|||||||
|
|
||||||
<!--[](https://git.schamagusa.de/Schanbro/WeekFocus)
|
<!--[](https://git.schamagusa.de/Schanbro/WeekFocus)
|
||||||
[](https://git.schamagusa.de/Schanbro/WeekFocus)-->
|
[](https://git.schamagusa.de/Schanbro/WeekFocus)-->
|
||||||
[](https://git.schamagusa.de/robin/WeekFocus/issues)
|
[](https://git.schamagusa.de/Schanbro/WeekFocus/issues)
|
||||||
[](https://git.schamagusa.de/robin/WeekFocus)
|
[](https://git.schamagusa.de/Schanbro/WeekFocus)
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -82,7 +82,7 @@ https://git.schamagusa.de/Schanbro/WeekFocus
|
|||||||
|
|
||||||
### Manual APK Install
|
### Manual APK Install
|
||||||
|
|
||||||
1. Open the [Releases](https://git.schamagusa.de/robin/WeekFocus/releases) page.
|
1. Open the [Releases](https://git.schamagusa.de/Schanbro/WeekFocus/releases) page.
|
||||||
2. Download the latest `.apk` file.
|
2. Download the latest `.apk` file.
|
||||||
3. If prompted, allow installation from unknown sources, then install the APK.
|
3. If prompted, allow installation from unknown sources, then install the APK.
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user