Skip to content

Commit

Permalink
Merge branch 'release/3.4'
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel-Oliveira committed Mar 26, 2024
2 parents 027c6cf + 20e9821 commit 8571173
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 21 deletions.
24 changes: 4 additions & 20 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,35 +35,19 @@ jobs:
timezoneMacos: "America/Sao_Paulo"
timezoneWindows: "America/Sao_Paulo"

- name: Set Release version env variable
run: |
mvn versions:set -DremoveSnapshot -DgenerateBackupPoms=false
- name: Set Release version env variable
shell: bash
run: |
echo "X_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_ENV
IFS='.' read -ra VER <<< "${{ env.X_VERSION }}"
MAJOR=${VER[0]}
MINOR=${VER[1]}
let "PREV_MINOR=MINOR-1"
PREV_VERSION="${MAJOR}.${PREV_MINOR}"
echo "RELEASE_VERSION=$PREV_VERSION" >> $GITHUB_ENV
- name: Criando executavel
run: |
mvn versions:set -DnewVersion=${{ env.RELEASE_VERSION }}
mvn versions:set -DnewVersion=${{github.ref_name}}
mvn clean compile assembly:single --file pom.xml
- name: Criando pasta para External Jar
run: |
mkdir java-certificado
cp target/*.jar java-certificado
- uses: montudor/action-zip@v1
with:
args: zip -qq -r java-certificado-${{ env.RELEASE_VERSION }}.zip java-certificado
args: zip -qq -r java-certificado-${{github.ref_name}}.zip java-certificado

- name: Criando release
uses: actions/create-release@v1
Expand All @@ -83,6 +67,6 @@ jobs:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./java-certificado-${{ env.RELEASE_VERSION }}.zip
asset_name: java-certificado-${{ env.RELEASE_VERSION }}.zip
asset_path: ./java-certificado-${{github.ref_name}}.zip
asset_name: java-certificado-${{github.ref_name}}.zip
asset_content_type: application/zip
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# Notas de versão
- Melhorias Logs, Correcao Consulta SP
- Correcao de Null Pointer Exception ao lista Repositorio Windows.
- Adicionado GitActions para gerar o Jar

0 comments on commit 8571173

Please sign in to comment.