Skip to content

Commit

Permalink
Ajout de la github action create-release
Browse files Browse the repository at this point in the history
  • Loading branch information
aurelien23 committed Oct 3, 2024
1 parent 8d6d698 commit ffa21f8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 17 deletions.
21 changes: 5 additions & 16 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,31 +43,20 @@ jobs:
env:
NEW_TAG: ${{ github.event.inputs.releaseVersion }}
run: |
# préparation de la release qui va :
# - modifier le numéro de version dans les pom.xml du projet
# préparation de la release qui va :
# - créer un tag git du numéro de version en question
# - pousser le tout sur le dépôt github
git config --global user.email "github-action@noreply"
git config --global user.name "Github Action"
# patch la version dans les pom.xml avec xmllint
#sudo apt-get install -y libxml2-utils
#echo -e "setns x=http://maven.apache.org/POM/4.0.0\ncd /x:project/x:version\nset $NEW_TAG\nsave" \
# | xmllint --shell ./pom.xml
#for POM_FILE in $(ls */pom.xml)
#do
# echo -e "setns x=http://maven.apache.org/POM/4.0.0\ncd /x:project/x:version\nset $NEW_TAG\nsave" \
# | xmllint --shell $POM_FILE
#done
echo $NEW_TAG > .version
git add .version
# création du tag
#git add .
#git commit -m "Version $NEW_TAG"
git commit -m "Version $NEW_TAG"
git tag $NEW_TAG
git push origin $NEW_TAG
git commit --amend -m "Version $NEW_TAG [skip ci]"
git push -f
git push
# merge la préparation de la nouvelle version sur develop
git switch develop
git merge main -m "Merge main to develop [skip ci]"
Expand Down
2 changes: 1 addition & 1 deletion launch-ezm.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
#Batch qui lance ezmesure sur le repertoire logtheses/data/thesesfr/results/ sur l'url $1, avec le token EZMesure $2 et l'index $3
#Doc EZMesure NodeJS : https://github.com/ezpaarse-project/node-ezmesure .
#Doc EZMesure NodeJS : https://github.com/ezpaarse-project/node-ezmesure

PATH=/opt/ezpaarse/bin:/opt/ezpaarse/node_modules/.bin:/usr/local/bin:/usr/bin:/bin:/sbin:/usr/sbin:/usr/local/sbin:$PATH
NODE_ENV=production
Expand Down

0 comments on commit ffa21f8

Please sign in to comment.