Skip to content

Commit f2e83a3

Browse files
feat(cli): aggiunge creazione GitHub Release automatica al command /release
1 parent 4a8ffa0 commit f2e83a3

File tree

2 files changed

+34
-66
lines changed

2 files changed

+34
-66
lines changed

.claude/commands/release.md

Lines changed: 34 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Release Completa
22

3-
Esegue in sequenza: commit release, build, push GHCR.
3+
Esegue in sequenza: commit release, build, push GHCR, crea GitHub Release.
44

55
## Sintassi
66

@@ -33,7 +33,7 @@ Verifica:
3333

3434
```bash
3535
# Da CHANGELOG.md, trova primo ## [x.y.z]
36-
grep -m1 '## \[' CHANGELOG.md
36+
grep -E '## \[[0-9]+\.[0-9]+\.[0-9]+\]' CHANGELOG.md | head -1
3737
```
3838

3939
Calcola nuova versione in base all'argomento.
@@ -53,6 +53,7 @@ Azioni:
5353
4. Push: origin/main + tag
5454
5. Build: ragify:1.1.0-tika
5555
6. Push GHCR: ghcr.io/strawberry-code/ragify:1.1.0-tika
56+
7. GitHub Release: v1.1.0 con note da CHANGELOG
5657
5758
Procedere? [y/N]
5859
```
@@ -94,6 +95,32 @@ podman push ghcr.io/strawberry-code/ragify:{version}-tika
9495
podman push ghcr.io/strawberry-code/ragify:latest-tika
9596
```
9697

98+
Se errore TLS, usa `--tls-verify=false`.
99+
100+
**4.7 Crea GitHub Release**
101+
102+
Estrai le note dalla sezione appena rilasciata in CHANGELOG.md e crea la release:
103+
104+
```bash
105+
gh release create v{version} --title "v{version}" --notes "$(cat <<'EOF'
106+
## What's Changed
107+
108+
### Added
109+
- [contenuto da CHANGELOG ### Added]
110+
111+
### Changed
112+
- [contenuto da CHANGELOG ### Changed]
113+
114+
### Fixed
115+
- [contenuto da CHANGELOG ### Fixed]
116+
117+
### Docker Images
118+
- `ghcr.io/strawberry-code/ragify:{version}-tika`
119+
- `ghcr.io/strawberry-code/ragify:latest-tika`
120+
EOF
121+
)"
122+
```
123+
97124
### Step 5: Riepilogo finale
98125

99126
```
@@ -108,6 +135,9 @@ Docker:
108135
ghcr.io/strawberry-code/ragify:1.1.0-tika
109136
ghcr.io/strawberry-code/ragify:latest-tika
110137
138+
GitHub Release:
139+
https://github.com/strawberry-code/self-hosted-llm-rag/releases/tag/v1.1.0
140+
111141
Deploy:
112142
docker pull ghcr.io/strawberry-code/ragify:latest-tika
113143
docker compose down && docker compose up -d
@@ -117,7 +147,8 @@ Deploy:
117147

118148
## Note
119149

120-
- Richiede conferma prima di ogni step critico
150+
- Richiede conferma prima di procedere
121151
- Se un passaggio fallisce, si ferma e chiede come procedere
122152
- Il processo completo richiede ~10-15 minuti
123153
- Builda solo variante `-tika` (la più usata)
154+
- Le note della GitHub Release vengono estratte dal CHANGELOG.md

docker-compose.yml

Lines changed: 0 additions & 63 deletions
This file was deleted.

0 commit comments

Comments
 (0)