Mise à jour de la version vers 0.3.3

Mise à jour de la version dans Cargo.toml et version.txt vers 0.3.3

- Suppression de l'étape d'extraction de version dans le workflow build-push.yaml
- Amélioration de la cible Makefile sync-version pour utiliser un fichier de dépendance
- Ajout de messages de documentation lors du push avec jj
This commit is contained in:
2026-01-11 16:39:35 +01:00
parent 6f25b8ef53
commit c1bf488ab2
4 changed files with 5 additions and 9 deletions

View File

@@ -15,12 +15,6 @@ jobs:
with: with:
path: ~/.npm path: ~/.npm
key: dont-cache-${{ github.run_id }} key: dont-cache-${{ github.run_id }}
- name: Extract version from Cargo.toml
run: |
grep '^version = ' PMOMusic/Cargo.toml | head -n 1 | sed 's/version = "\(.*\)"/\1/' > version.txt
echo "Version extracted: $(cat version.txt)"
- name: Build and push image - name: Build and push image
uses: https://gargoton.petite-maison-orange.fr/pmo-actions/build-push-image@main uses: https://gargoton.petite-maison-orange.fr/pmo-actions/build-push-image@main
with: with:

View File

@@ -211,7 +211,7 @@ bump-version:
@echo "$(GREEN)✓ Version mise à jour dans PMOMusic/Cargo.toml et version.txt$(NC)" @echo "$(GREEN)✓ Version mise à jour dans PMOMusic/Cargo.toml et version.txt$(NC)"
## sync-version: Synchronise version.txt depuis PMOMusic/Cargo.toml ## sync-version: Synchronise version.txt depuis PMOMusic/Cargo.toml
sync-version: version.txt: PMOMusic/Cargo.toml
@echo "$(YELLOW)→ Synchronisation de version.txt...$(NC)" @echo "$(YELLOW)→ Synchronisation de version.txt...$(NC)"
@grep '^version = ' PMOMusic/Cargo.toml | head -n 1 | sed 's/version = "\(.*\)"/\1/' > version.txt @grep '^version = ' PMOMusic/Cargo.toml | head -n 1 | sed 's/version = "\(.*\)"/\1/' > version.txt
@echo "$(GREEN)✓ version.txt synchronisé: $$(cat version.txt)$(NC)" @echo "$(GREEN)✓ version.txt synchronisé: $$(cat version.txt)$(NC)"
@@ -237,7 +237,9 @@ jjnew:
jjpush: bump-version jjpush: bump-version
@echo "$(YELLOW)→ Push du commit sur le dépôt...$(NC)" @echo "$(YELLOW)→ Push du commit sur le dépôt...$(NC)"
@echo "$(BLUE)→ Documentation du commit courrant...$(NC)"
@jj auto-describe @jj auto-describe
@echo "$(BLUE)→ C'est fait.$(NC)"
@jj git push --change @ @jj git push --change @
@echo "$(GREEN)✓ Commit pushé sur le dépôt$(NC)" @echo "$(GREEN)✓ Commit pushé sur le dépôt$(NC)"

View File

@@ -1,6 +1,6 @@
[package] [package]
name = "PMOMusic" name = "PMOMusic"
version = "0.3.2" version = "0.3.3"
edition = "2024" edition = "2024"
[dependencies] [dependencies]

View File

@@ -1 +1 @@
0.3.2 0.3.3