Skip to content

Commit 79acb05

Browse files
author
Julien Ruaux
committed
build: Fixed versioning
1 parent a17466d commit 79acb05

File tree

2 files changed

+16
-11
lines changed

2 files changed

+16
-11
lines changed

.github/workflows/release.yml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
jobs:
1010
release:
1111
name: Release
12-
runs-on: ubuntu-18.04
12+
runs-on: ubuntu-latest
1313
steps:
1414
- name: Checkout
1515
uses: actions/checkout@v3
@@ -32,13 +32,6 @@ jobs:
3232
run: |
3333
VERSION=${{ github.event.inputs.version }}
3434
./mvnw versions:set -DnewVersion=$VERSION
35-
sed -i -e "s/^\:project-version\:\ .*/:project-version: $VERSION/g" README.adoc
36-
git add pom.xml
37-
git add README.adoc
38-
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
39-
git config --global user.name "GitHub Action"
40-
git commit -a -m "Releasing version $VERSION"
41-
git push origin master
4235
4336
- name: Build
4437
run: ./mvnw --no-transfer-progress -B --file pom.xml verify
@@ -60,6 +53,18 @@ jobs:
6053
JRELEASER_GPG_SECRET_KEY: ${{ secrets.GPG_SECRET_KEY }}
6154
JRELEASER_SLACK_WEBHOOK: ${{ secrets.JRELEASER_SLACK_WEBHOOK }}
6255

56+
- name: Commit release version
57+
run: |
58+
VERSION=${{ github.event.inputs.version }}
59+
sed -i -e "s/^\:project-version\:\ .*/:project-version: $VERSION/g" README.adoc
60+
git add pom.xml
61+
git add README.adoc
62+
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
63+
git config --global user.name "GitHub Action"
64+
git commit -a -m "Releasing version $VERSION"
65+
git push origin master
66+
67+
6368
- name: JReleaser output
6469
if: always()
6570
uses: actions/upload-artifact@v2

jreleaser.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ project:
22
name: redis-kafka-connect
33
description: Kafka Connector (Source and Sink) by Redis
44
longDescription: Kafka Connect source and sink connectors for Redis
5-
website: https://github.com/redis-field-engineering/redis-kafka-connect
5+
links:
6+
homepage: https://github.com/redis-field-engineering/redis-kafka-connect
67
authors:
78
- Julien Ruaux
89
license: Apache-2.0
9-
extraProperties:
10-
inceptionYear: 2021
10+
inceptionYear: 2021
1111
tags:
1212
- 'kafka'
1313
- 'connect'

0 commit comments

Comments
 (0)