Compare commits
2 Commits
v0.2.1
...
8f6b85008c
| Author | SHA1 | Date | |
|---|---|---|---|
| 8f6b85008c | |||
| eb1e530ce7 |
@@ -399,20 +399,29 @@ jobs:
|
|||||||
sed -i -e '/./,$!d' release-notes.md
|
sed -i -e '/./,$!d' release-notes.md
|
||||||
fi
|
fi
|
||||||
[ -s release-notes.md ] || echo "_See CHANGELOG.md for ${VERSION}._" > release-notes.md
|
[ -s release-notes.md ] || echo "_See CHANGELOG.md for ${VERSION}._" > release-notes.md
|
||||||
python3 - "$TAG" "$SHA" "$PRERELEASE" <<'PY' > cb-payload.json
|
# The push mirror (sync_on_commit) usually syncs the tag to Codeberg
|
||||||
|
# before this step runs. Forgejo 500s on POST /releases with a
|
||||||
|
# target_commitish when the tag already exists — so only pass
|
||||||
|
# target_commitish when we actually need the API to create the tag.
|
||||||
|
TAG_CODE=$(curl -s -o /dev/null -w '%{http_code}' \
|
||||||
|
-H "Authorization: token $TOKEN" "$API/git/refs/tags/$TAG")
|
||||||
|
python3 - "$TAG" "$SHA" "$PRERELEASE" "$TAG_CODE" <<'PY' > cb-payload.json
|
||||||
import json, sys
|
import json, sys
|
||||||
print(json.dumps({
|
tag, sha, pre, tag_code = sys.argv[1:5]
|
||||||
"tag_name": sys.argv[1],
|
payload = {
|
||||||
"target_commitish": sys.argv[2],
|
"tag_name": tag,
|
||||||
"name": sys.argv[1],
|
"name": tag,
|
||||||
"body": open("release-notes.md").read(),
|
"body": open("release-notes.md").read(),
|
||||||
"draft": False,
|
"draft": False,
|
||||||
# Pre-1.0 releases are flagged as pre-releases (see detect job).
|
# Pre-1.0 releases are flagged as pre-releases (see detect job).
|
||||||
"prerelease": sys.argv[3] == "true",
|
"prerelease": pre == "true",
|
||||||
}))
|
}
|
||||||
|
# Only create the tag via the release when it isn't mirrored yet.
|
||||||
|
if tag_code != "200":
|
||||||
|
payload["target_commitish"] = sha
|
||||||
|
print(json.dumps(payload))
|
||||||
PY
|
PY
|
||||||
# Upsert (re-run safe). POST also creates the tag at target_commitish
|
# Upsert (re-run safe).
|
||||||
# if the push mirror hasn't synced it yet.
|
|
||||||
ID=$(curl -s -H "Authorization: token $TOKEN" "$API/releases/tags/$TAG" | jq -r '.id // empty')
|
ID=$(curl -s -H "Authorization: token $TOKEN" "$API/releases/tags/$TAG" | jq -r '.id // empty')
|
||||||
if [ -n "$ID" ]; then
|
if [ -n "$ID" ]; then
|
||||||
curl -s -o /dev/null -w "release PATCH HTTP %{http_code}\n" -X PATCH \
|
curl -s -o /dev/null -w "release PATCH HTTP %{http_code}\n" -X PATCH \
|
||||||
|
|||||||
@@ -25,6 +25,13 @@ All notable changes to this project are documented here. The format follows
|
|||||||
faceted Gem shape, tertiary tones), with a small press scale/rotate flourish.
|
faceted Gem shape, tertiary tones), with a small press scale/rotate flourish.
|
||||||
Future top-bar actions pick their own shape from the `ActionShapes` registry.
|
Future top-bar actions pick their own shape from the `ActionShapes` registry.
|
||||||
|
|
||||||
|
## [0.2.2] - 2026-07-19
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
- Release automation now reliably mirrors each release to the Codeberg mirror
|
||||||
|
(signed APK + SHA-256 checksum). The 0.2.1 attempt failed when the release tag
|
||||||
|
had already been synced to Codeberg.
|
||||||
|
|
||||||
## [0.2.1] - 2026-07-19
|
## [0.2.1] - 2026-07-19
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|||||||
@@ -29,8 +29,8 @@ android {
|
|||||||
// release itself (versionCode is pinned to MAJOR*10000 + MINOR*100 +
|
// release itself (versionCode is pinned to MAJOR*10000 + MINOR*100 +
|
||||||
// PATCH from versionName, e.g. 0.2.0 -> 200). The Gitea release is marked
|
// PATCH from versionName, e.g. 0.2.0 -> 200). The Gitea release is marked
|
||||||
// as a pre-release while MAJOR is 0. See docs/RELEASING.md.
|
// as a pre-release while MAJOR is 0. See docs/RELEASING.md.
|
||||||
versionCode = 201
|
versionCode = 202
|
||||||
versionName = "0.2.1"
|
versionName = "0.2.2"
|
||||||
|
|
||||||
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
||||||
}
|
}
|
||||||
|
|||||||
5
fastlane/metadata/android/en-US/changelogs/202.txt
Normal file
5
fastlane/metadata/android/en-US/changelogs/202.txt
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
### Fixed
|
||||||
|
- Release automation now reliably mirrors each release to the Codeberg mirror
|
||||||
|
(signed APK + SHA-256 checksum). The 0.2.1 attempt failed when the release tag
|
||||||
|
had already been synced to Codeberg.
|
||||||
|
|
||||||
Reference in New Issue
Block a user