Skip to content

Commit

Permalink
Ajustes Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel-Oliveira committed Mar 26, 2024
1 parent d2e8e25 commit 3395343
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 7 deletions.
22 changes: 15 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ name: Liberar nova versão
on:
workflow_dispatch:
push:
branches:
- master
tags:
- '3.*'

jobs:

Expand Down Expand Up @@ -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:
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 3395343

Please sign in to comment.