Mise à jour de la version et améliorations du workflow

Mise à jour de la version de PMOMusic de 0.1.0 à 0.3.1

- Correction de l'indentation dans le fichier de workflow
- Ajout d'une étape pour extraire la version depuis Cargo.toml
- Ajout d'une cible Makefile pour incrémenter automatiquement le numéro de version patch
- Ajout de cibles Makefile pour gérer les commits avec jj (jeff) : bump-version, jjnew, jjpush, jjfetch
- Suppression du fichier version.txt inutile
This commit is contained in:
2026-01-11 15:53:37 +01:00
parent 7d2cb75e58
commit 646633af6b
5 changed files with 46 additions and 10 deletions

View File

@@ -3,8 +3,7 @@ name: Build and Push Docker Image
on:
push:
branches:
- main # Changez cela si votre branche principale a un autre nom
- main # Changez cela si votre branche principale a un autre nom
jobs:
build:
@@ -15,7 +14,13 @@ jobs:
uses: actions/cache@v3
with:
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
uses: https://gargoton.petite-maison-orange.fr/pmo-actions/build-push-image@main
with:
@@ -24,6 +29,3 @@ jobs:
no_cache: true
version_file: version.txt
check_uuid: 82a30d23-b3bd-4199-9237-776965831d20