feat(publish): releases in git (public tier, stage 2)

A person with an identity and a public profile publishes a studyset with
everything inside it as its next release (ADR 0005, rule 3): the server
reads their synced rows and writes them through the git command as a
commit on main and the annotated tag vN, in a bare repository of the
studyset's own, named by a random public id made at the first publish.

A release is a directory per studyset with a file per card, note, path,
step and PDF (its id, position, tag names and payload as synced, keys
sorted and indented) and the files the content names, without what is
only the author's (a card's report, a PDF's deadline). Publishing is
refused without a licence allowing passing it on in every studyset ("no
derivatives" allowed), with revisions to settle, with files not uploaded
yet, when nothing changed, or for a name that won't do; the name is
fixed from the first release, as is the person's handle.

In the app, Share in a studyset's action row opens the Publish sheet;
publishing syncs first, and settles by itself the revisions that merge
cleanly, listing only real conflicts. The server's image gets git, the
repositories a volume of their own, and the hourly backup a git bundle of
each.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MMm7usAo6q9ZZRoPkWjoxi
Signed-off-by: Tizian 「ティツィアーン」 <raisondetredev@pm.me>
This commit is contained in:
Tizian 「ティツィアーン」 2026-10-09 22:01:00 +02:00
commit f635b0816a
Signed by: raisondetredev
GPG key ID: 07F6FCF405488B64

View file

@ -1356,5 +1356,45 @@
"cardBrowserResetTitle": "{count, plural, =1{1 Karteikarte neu beginnen?} other{{count} Karteikarten neu beginnen?}}",
"cardBrowserResetMessage": "Sie gelten wieder als neu. Ihre Wiederholungen bleiben in deinem Verlauf und deinen Serien.",
"cardBrowserResetConfirm": "Zurücksetzen",
"cardBrowserReset": "{count, plural, =1{1 Karteikarte beginnt neu} other{{count} Karteikarten beginnen neu}}"
"cardBrowserReset": "{count, plural, =1{1 Karteikarte beginnt neu} other{{count} Karteikarten beginnen neu}}",
"studysetShare": "Teilen",
"studysetSharePrivate": "Teilen: privat",
"studysetSharePublished": "Teilen: veröffentlicht",
"publishTitle": "Veröffentlichen",
"publishPrivate": "Privat · nur du siehst es",
"publishPublished": "Veröffentlicht · v{version} · {date}",
"publishIntro": "Eine Veröffentlichung ist dieses Lernset mit allem darin, so wie es jetzt ist. Andere können es finden, damit lernen und es kopieren. Jede Veröffentlichung bleibt, wie sie war; spätere Änderungen kommen in die nächste.",
"publishAnonymous": "Melde dich mit GitHub an, um ein öffentliches Profil zu haben und zu veröffentlichen.",
"publishName": "Name",
"publishNameHint": "japanisch",
"publishLocation": "Zu finden unter {location}",
"publishNameFixed": "Fest, seit du zuerst veröffentlicht hast: andere verweisen darauf.",
"publishLicence": "Lizenz",
"publishLicenceNone": "Keine",
"publishLicenceOpen": "Erlaubt das Veröffentlichen.",
"publishLicenceNoDerivatives": "Erlaubt das Veröffentlichen, wie es ist: Lernende behalten ihre Änderungen für sich.",
"publishLicenceClosed": "Erlaubt keine Weitergabe. Wähle unter Bearbeiten eine andere.",
"publishLicenceNotOpen": "Die Lizenzen dieser Lernsets erlauben keine Weitergabe: {titles}",
"publishNotes": "Was sich geändert hat",
"publishNotesHint": "Neu in dieser Veröffentlichung …",
"publishReleases": "Veröffentlichungen",
"publishRelease": "v{version} · {date}",
"publishButton": "v{version} veröffentlichen",
"publishNoProfile": "Eine Veröffentlichung nennt dich mit deinem öffentlichen Profil. Lege zuerst eines an.",
"publishMakeProfile": "Öffentliches Profil anlegen",
"publishConflicts": "Diese wurden auf zwei Geräten verschieden geändert. Kläre sie zuerst:",
"publishConflictsElsewhere": "Einige Karteikarten, Notizen oder Schritte wurden auf zwei Geräten verschieden geändert. Synchronisiere, dann versuche es noch einmal.",
"publishUntitled": "Ohne Titel",
"publishFilesMissing": "Einige Dateien sind noch nicht auf deiner Instanz angekommen. Versuche es gleich noch einmal.",
"publishNothingChanged": "Seit der letzten Veröffentlichung hat sich nichts geändert.",
"publishBusy": "Dieses Lernset wird schon veröffentlicht. Versuche es gleich noch einmal.",
"publishSlugInvalid": "Kleinbuchstaben, Ziffern und Bindestriche, am Anfang ein Buchstabe oder eine Ziffer.",
"publishSlugTaken": "Ein anderes deiner Lernsets hat diesen Namen.",
"publishNotesTooLong": "Höchstens 5.000 Zeichen.",
"publishDone": "v{version} veröffentlicht.",
"publishFailed": "Deine Instanz war nicht erreichbar. Nichts wurde veröffentlicht.",
"publishUnreachable": "Das Veröffentlichen ist gerade nicht erreichbar.",
"publishRetry": "Erneut versuchen",
"publishCopyLocation": "Adresse kopieren",
"publishLocationCopied": "Adresse kopiert."
}