diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5e623ba..0441e1c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,7 +9,7 @@ on: jobs: release: name: Release - runs-on: ubuntu-18.04 + runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v3 @@ -31,12 +31,7 @@ jobs: - name: Set release version run: | VERSION=${{ github.event.inputs.version }} - sed -i -e "s/^\:project-version\:\ .*/:project-version: $VERSION/g" README.adoc - git add 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" - git push origin master + ./mvnw versions:set -DnewVersion=$VERSION - name: Build run: ./mvnw --no-transfer-progress -B --file pom.xml verify @@ -57,6 +52,16 @@ jobs: JRELEASER_GPG_PUBLIC_KEY: ${{ secrets.GPG_PUBLIC_KEY}} JRELEASER_GPG_SECRET_KEY: ${{ secrets.GPG_SECRET_KEY }} JRELEASER_SLACK_WEBHOOK: ${{ secrets.JRELEASER_SLACK_WEBHOOK }} + + - name: Commit release version + run: | + VERSION=${{ github.event.inputs.version }} + sed -i -e "s/^\:project-version\:\ .*/:project-version: $VERSION/g" README.adoc + git add 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" + git push origin master - name: JReleaser output if: always() diff --git a/jreleaser.yml b/jreleaser.yml index 2c790b2..7ace5ef 100644 --- a/jreleaser.yml +++ b/jreleaser.yml @@ -10,8 +10,7 @@ project: groupId: com.redis version: 8 multiProject: true - extraProperties: - inceptionYear: 2020 + inceptionYear: 2020 tags: - 'redis' - 'redisearch'