diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9499cec..f39ffb4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -30,29 +30,19 @@ env: JAVA_DISTRO: 'zulu' jobs: - precheck: - name: Precheck - runs-on: ubuntu-latest - outputs: - VERSION: ${{ steps.vars.outputs.VERSION }} - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Cancel previous run - uses: styfle/cancel-workflow-action@0.12.1 - with: - access_token: ${{ secrets.GITHUB_TOKEN }} - release: name: Release - needs: [precheck] runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 with: fetch-depth: 0 + - name: Cancel previous run + uses: styfle/cancel-workflow-action@0.12.1 + with: + access_token: ${{ secrets.GITHUB_TOKEN }} + - name: Set up Java uses: actions/setup-java@v4 with: @@ -60,15 +50,17 @@ jobs: distribution: ${{ env.JAVA_DISTRO }} cache: gradle - - name: Set release version + - name: Version + id: vars + shell: bash run: | - VERSION=${{ github.event.inputs.version }} - echo $VERSION > VERSION + echo "VERSION=${{ github.event.inputs.version }}" >> $GITHUB_OUTPUT + echo ${{ github.event.inputs.version }} > VERSION git add VERSION - sed -i -e "s/^\:project-version\:\ .*/:project-version: ${{ needs.precheck.outputs.VERSION }}/g" README.adoc - git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" - git config --global user.name "GitHub Action" - git commit -a -m "Releasing version $VERSION" + sed -i -e "s/^\:project-version\:\ .*/:project-version: ${{ github.event.inputs.version }}/g" README.adoc + git config --global user.email "${{ secrets.COMMIT_EMAIL }}" + git config --global user.name "Andres Almiray" + git commit -a -m "Releasing version ${{ github.event.inputs.version }}" git push origin master - name: Deploy diff --git a/README.adoc b/README.adoc index e1a1115..8c31d2e 100644 --- a/README.adoc +++ b/README.adoc @@ -6,7 +6,7 @@ :project-name: ezmorph :project-group: org.kordamp.ezmorph :project-artifactId: ezmorph-core -:project-version: 3.0.0 +:project-version: 3.1.0 image:https://img.shields.io/github/actions/workflow/status/{project-owner}/{project-name}/early-access.yml?branch=master&logo=github&label=Build["Build Status", link="https://github.com/{project-owner}/{project-name}/actions"] image:https://img.shields.io/maven-central/v/{project-group}/{project-artifactId}?logo=apache%20maven[Download, link="https://search.maven.org/#search|ga|1|g:{project-group} AND a:{project-artifactId}"] diff --git a/VERSION b/VERSION index 8dbae45..fd2a018 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -3.1.0-SNAPSHOT +3.1.0 diff --git a/jreleaser.yml b/jreleaser.yml index 3676d5f..30514c8 100644 --- a/jreleaser.yml +++ b/jreleaser.yml @@ -26,6 +26,13 @@ project: license: Apache-2.0 inceptionYear: 2006 stereotype: NONE + vendor: Kordamp + java: + groupId: org.kordamp.ezmorph + version: 8 + tags: + - 'pojo' + - 'convert' release: github: