From c1bf488ab2def06867434b955c36bec435227205 Mon Sep 17 00:00:00 2001 From: Eric Coissac Date: Sun, 11 Jan 2026 16:39:35 +0100 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20la=20version=20vers?= =?UTF-8?q?=200.3.3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- .gitea/workflows/build-push.yaml | 6 ------ Makefile | 4 +++- PMOMusic/Cargo.toml | 2 +- version.txt | 2 +- 4 files changed, 5 insertions(+), 9 deletions(-) diff --git a/.gitea/workflows/build-push.yaml b/.gitea/workflows/build-push.yaml index cee2ff8b..417f0c3c 100644 --- a/.gitea/workflows/build-push.yaml +++ b/.gitea/workflows/build-push.yaml @@ -15,12 +15,6 @@ jobs: with: path: ~/.npm 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 uses: https://gargoton.petite-maison-orange.fr/pmo-actions/build-push-image@main with: diff --git a/Makefile b/Makefile index 02ebacca..3aaf0570 100644 --- a/Makefile +++ b/Makefile @@ -211,7 +211,7 @@ bump-version: @echo "$(GREEN)✓ Version mise à jour dans PMOMusic/Cargo.toml et version.txt$(NC)" ## sync-version: Synchronise version.txt depuis PMOMusic/Cargo.toml -sync-version: +version.txt: PMOMusic/Cargo.toml @echo "$(YELLOW)→ Synchronisation de version.txt...$(NC)" @grep '^version = ' PMOMusic/Cargo.toml | head -n 1 | sed 's/version = "\(.*\)"/\1/' > version.txt @echo "$(GREEN)✓ version.txt synchronisé: $$(cat version.txt)$(NC)" @@ -237,7 +237,9 @@ jjnew: jjpush: bump-version @echo "$(YELLOW)→ Push du commit sur le dépôt...$(NC)" + @echo "$(BLUE)→ Documentation du commit courrant...$(NC)" @jj auto-describe + @echo "$(BLUE)→ C'est fait.$(NC)" @jj git push --change @ @echo "$(GREEN)✓ Commit pushé sur le dépôt$(NC)" diff --git a/PMOMusic/Cargo.toml b/PMOMusic/Cargo.toml index cf1a30e5..3a2d9b41 100644 --- a/PMOMusic/Cargo.toml +++ b/PMOMusic/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "PMOMusic" -version = "0.3.2" +version = "0.3.3" edition = "2024" [dependencies] diff --git a/version.txt b/version.txt index d15723fb..1c09c74e 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -0.3.2 +0.3.3