Skip to content

Commit 8571173

Browse files
Merge branch 'release/3.4'
2 parents 027c6cf + 20e9821 commit 8571173

File tree

2 files changed

+6
-21
lines changed

2 files changed

+6
-21
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -35,35 +35,19 @@ jobs:
3535
timezoneMacos: "America/Sao_Paulo"
3636
timezoneWindows: "America/Sao_Paulo"
3737

38-
- name: Set Release version env variable
39-
run: |
40-
mvn versions:set -DremoveSnapshot -DgenerateBackupPoms=false
41-
42-
- name: Set Release version env variable
43-
shell: bash
44-
run: |
45-
echo "X_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_ENV
46-
IFS='.' read -ra VER <<< "${{ env.X_VERSION }}"
47-
MAJOR=${VER[0]}
48-
MINOR=${VER[1]}
49-
let "PREV_MINOR=MINOR-1"
50-
PREV_VERSION="${MAJOR}.${PREV_MINOR}"
51-
echo "RELEASE_VERSION=$PREV_VERSION" >> $GITHUB_ENV
52-
5338
- name: Criando executavel
5439
run: |
55-
mvn versions:set -DnewVersion=${{ env.RELEASE_VERSION }}
40+
mvn versions:set -DnewVersion=${{github.ref_name}}
5641
mvn clean compile assembly:single --file pom.xml
5742
5843
- name: Criando pasta para External Jar
5944
run: |
6045
mkdir java-certificado
6146
cp target/*.jar java-certificado
6247
63-
6448
- uses: montudor/action-zip@v1
6549
with:
66-
args: zip -qq -r java-certificado-${{ env.RELEASE_VERSION }}.zip java-certificado
50+
args: zip -qq -r java-certificado-${{github.ref_name}}.zip java-certificado
6751

6852
- name: Criando release
6953
uses: actions/create-release@v1
@@ -83,6 +67,6 @@ jobs:
8367
GITHUB_TOKEN: ${{ github.token }}
8468
with:
8569
upload_url: ${{ steps.create_release.outputs.upload_url }}
86-
asset_path: ./java-certificado-${{ env.RELEASE_VERSION }}.zip
87-
asset_name: java-certificado-${{ env.RELEASE_VERSION }}.zip
70+
asset_path: ./java-certificado-${{github.ref_name}}.zip
71+
asset_name: java-certificado-${{github.ref_name}}.zip
8872
asset_content_type: application/zip

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
# Notas de versão
2-
- Melhorias Logs, Correcao Consulta SP
2+
- Correcao de Null Pointer Exception ao lista Repositorio Windows.
3+
- Adicionado GitActions para gerar o Jar

0 commit comments

Comments
 (0)