Prepare the 0.3.0 release
CI / desktop (ubuntu-latest) (push) Successful in 2h34m54s
CI / mobile (push) Failing after 4m52s
CI / desktop (macos-latest) (push) Canceled after 0s
CI / desktop (windows-latest) (push) Canceled after 0s
CI / docker (push) Successful in 53m34s
Docs / build (push) Canceled after 0s
Docs / deploy (push) Canceled after 0s
CI / go (Media) (push) Successful in 13m0s
CI / go (Server) (push) Successful in 24m4s
CI / go (Web-App) (push) Successful in 12m35s
CI / frontend (push) Failing after 11m51s

CHANGELOG.md gets the 0.3.0 notes: everything since 0.2.0 by area, and
the steps for upgrading a 0.2.0 install (new compose files with a stock
PocketBase on 8070, pb_data at /pb/pb_data, the media service, and the
SMTP password to enter once more). The release workflow now uses the
tag's CHANGELOG section as the Gitea release text. A v0.2.0 compose stack
with data was upgraded in place to this commit and kept its data.

Also fixes what CI would have failed on:
- Server lint (golangci-lint v2.14): errors.Is/As for sentinel errors,
  the bbolt/errors package instead of the deprecated bolt error, one
  needless conversion, and commented nolints for gosec false positives.
- SPDX headers on Database/export-schema.sh and Server/entrypoint.sh.
- Prettier on two files; the generated pbschema/schema.json is ignored.
- The editor-bridge dist page rebuilt to match the phone app's copy.

PLAN.md and the upgrade guide point to the release notes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
tajniak81andClaude Opus 5.5 committed 2026-11-17 10:21:57 +01:00
1 parent e5da208974
commit cad42fbe89
19 files changed
+174 -29

No files matched your search

+22 -2
View File
@@ -216,11 +216,28 @@ jobs:
if: github.event_name == 'push'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
sparse-checkout: CHANGELOG.md
sparse-checkout-cone-mode: false
# Each artifact lands in dist/<artifact name>/.
- uses: actions/download-artifact@v3
with:
path: dist
# The release text is the tag's section of CHANGELOG.md ("## 0.3.0 — …"
# up to the next "## "), empty when there is none.
- name: Release notes
env:
TAG: ${{ github.ref_name }}
run: |
v="${TAG#v}"
awk -v v="$v" '
/^## / { on = (index($0, "## " v " ") == 1 || $0 == "## " v); next }
on' CHANGELOG.md > notes.md
echo "$(wc -l < notes.md) lines of release notes for $v"
# Gitea's release API; a release made earlier for this tag (by hand or
# by a rerun) gets the files added instead of a second release.
- name: Release
@@ -234,9 +251,12 @@ jobs:
case "$TAG" in *-*) prerelease=true ;; esac
id=$(curl -fsS -H "$auth" "$API/releases/tags/$TAG" | jq -r .id) || id=""
if [ -z "$id" ]; then
id=$(jq -n --arg tag "$TAG" --argjson pre "$prerelease" \
'{tag_name: $tag, name: $tag, prerelease: $pre}' |
id=$(jq -n --arg tag "$TAG" --argjson pre "$prerelease" --rawfile body notes.md \
'{tag_name: $tag, name: $tag, body: $body, prerelease: $pre}' |
curl -fsS -X POST -H "$auth" -H "Content-Type: application/json" -d @- "$API/releases" | jq -r .id)
elif [ -s notes.md ]; then
jq -n --rawfile body notes.md '{body: $body}' |
curl -fsS -X PATCH -H "$auth" -H "Content-Type: application/json" -d @- "$API/releases/$id" > /dev/null
fi
for f in dist/*/*; do
name=$(basename "$f")