bollwerk/.github/prompts/publish.prompt.md
Jens Reinemann e0130910af chore: migrate server URLs from IP to bollwerk.online domain
Replace all HTTP references to 195.246.231.210 with bollwerk.online
across skills, prompts, scripts, and app default settings:

- Dockerfile: rename KRISENVORRAT_JWT_SECRET to BOLLWERK_JWT_SECRET
- SettingsKey.kt: default server URL now http://bollwerk.online:8080
- publish SKILL/prompt/script: HTTP URLs updated to bollwerk.online
- vps-deploy SKILL: Admin-UI and health-check URLs updated
- run-integration-tests.ps1: default BaseUrl updated

SSH commands (ssh/scp) intentionally kept on IP, as DNS is not
used for SSH access.
2026-05-17 18:22:17 +02:00

60 lines
1.7 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
description: "publish Neue App-Version bauen und auf dem VPS veröffentlichen. Bumpt die Version, baut die APK, lädt sie auf den Server hoch und verifiziert QR-Code-Seite + Update-API."
name: "publish"
agent: agent
tools: [read, search, execute/runInTerminal, execute/sendToTerminal, execute/getTerminalOutput, edit]
---
Lies **zuerst** die Publish-Skill-Datei `.github/skills/publish/SKILL.md` vollständig mit `read_file`.
Führe danach den vollständigen Publish-Workflow durch:
---
## Schritt 1 Version ermitteln
1. Lies `app/build.gradle.kts` und ermittle den aktuellen `versionCode` und `versionName`.
2. Frage den User, auf welche Version gebumpt werden soll (Vorschlag: versionCode +1, versionName minor bump).
3. Ändere `versionCode` und `versionName` in `app/build.gradle.kts`.
---
## Schritt 2 Build & Test (Quality Gate)
```powershell
.\gradlew.bat assembleDebug test
```
- **BUILD SUCCESSFUL** → weiter mit Schritt 3.
- **Fehler** → analysieren und beheben (max. 3 Zyklen).
---
## Schritt 3 Commit & Push
1. Erstelle einen Commit: `release: v{versionName} (build {versionCode})`
2. Push auf origin (gemäß Git-Konventionen: ankündigen, User kann abbrechen).
---
## Schritt 4 APK auf VPS veröffentlichen
Führe das Publish-Skript aus:
```powershell
& ".github/skills/publish/publish-apk.ps1" -VersionCode <code> -VersionName "<name>"
```
Verwende `mode=sync` mit `timeout=120000`.
---
## Schritt 5 Ergebnis berichten
Berichte kurz:
- Neue Version (versionCode + versionName)
- Build/Test-Status (✅ / ❌)
- Push-Status (✅ / ❌)
- VPS-Deployment (✅ / ❌)
- Homepage-URL: `http://bollwerk.online:8080/`
- Version-API: `http://bollwerk.online:8080/api/version`