From 3395343471aabbce9ef9ead4229098770aa535e8 Mon Sep 17 00:00:00 2001 From: SamuelOliveira Date: Mon, 25 Mar 2024 21:10:35 -0300 Subject: [PATCH] Ajustes Actions --- .github/workflows/release.yml | 22 +++++++++++++++------- README.md | 4 ++++ 2 files changed, 19 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 78ba83c..375169d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,8 +4,8 @@ name: Liberar nova versão on: workflow_dispatch: push: - branches: - - master + tags: + - '3.*' jobs: @@ -35,19 +35,27 @@ jobs: timezoneMacos: "America/Sao_Paulo" timezoneWindows: "America/Sao_Paulo" - - name: Criando executavel + - name: Set Release version env variable run: | mvn versions:set -DremoveSnapshot -DgenerateBackupPoms=false - mvn -B package --file pom.xml + echo "RELEASE_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_ENV + IFS='.' read -ra VER <<< "${{ env.RELEASE_VERSION }}" + MAJOR=${VER[0]} + MINOR=${VER[1]} + let "PREV_MINOR=MINOR-1" + RELEASE_VERSION="${MAJOR}.${PREV_MINOR}" + echo "PREV_VERSION=$PREV_VERSION" >> $GITHUB_ENV + + - name: Criando executavel + run: | + mvn versions:set -DnewVersion=${{ env.RELEASE_VERSION }} + mvn -B assembly:single --file pom.xml - name: Criando pasta para External Jar run: | mkdir java-certificado cp target/*.jar java-certificado - - name: Set Release version env variable - run: | - echo "RELEASE_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_ENV - uses: montudor/action-zip@v1 with: diff --git a/README.md b/README.md index 42567cb..ed83527 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,10 @@ Veja a [Wiki](https://Samuel-Oliveira.github.io/Java_Certificado/), para ter um ________________________________________________________________________________________________ # Historico de Versões +## v3.4 - 25/03/2024 +- Correcao de Null Pointer Exception ao lista Repositorio Windows. +- Adicionado GitActions para gerar o Jar + ## v3.3 - 20/03/2024 - Refatoracao do Metodo de extracao CNPJ e CPF e geracao de cacert