Skip to content

Commit 5192699

Browse files
authored
Merge pull request #69 from tagarr/Add-github-workflow
Add github workflow
2 parents 8bd20c9 + 3283f76 commit 5192699

File tree

3 files changed

+47
-2
lines changed

3 files changed

+47
-2
lines changed
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
on:
2+
push:
3+
tags:
4+
- 'v[0-9]+.[0-9]+.[0-9]+' # Push events to matching semver, i.e. 10.0.0
5+
6+
name: Build and create release
7+
8+
jobs:
9+
build:
10+
name: Build and upload release binary
11+
#if: github.event.base_ref == 'refs/heads/master' # only run if on master branch
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v2
16+
- name: Set up JDK 1.8
17+
uses: actions/setup-java@v1
18+
with:
19+
java-version: 1.8
20+
- name: Get java-version
21+
run: |
22+
BUILD_VERSION=$( mvn help:evaluate -Dexpression=project.version -q -DforceStdout )
23+
echo "::set-env name=VERSION::$BUILD_VERSION"
24+
- name: Build
25+
run: mvn package
26+
- name: Create Release
27+
id: create_release
28+
uses: actions/create-release@v1
29+
env:
30+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31+
with:
32+
tag_name: ${{ github.ref }}
33+
release_name: Release ${{ github.ref }}
34+
draft: false
35+
prerelease: false
36+
- name: Upload Release Asset
37+
id: upload-release-asset
38+
uses: actions/upload-release-asset@v1
39+
env:
40+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
41+
with:
42+
upload_url: ${{ steps.create_release.outputs.upload_url }}
43+
asset_path: ./target/kafka-connect-mq-source-${{env.VERSION}}-jar-with-dependencies.jar
44+
asset_name: kafka-connect-mq-source-${{env.VERSION}}-jar-with-dependencies.jar
45+
asset_content_type: application/java-archive

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<groupId>com.ibm.eventstreams.connect</groupId>
2121
<artifactId>kafka-connect-mq-source</artifactId>
2222
<packaging>jar</packaging>
23-
<version>1.3.0</version>
23+
<version>1.3.1</version>
2424
<name>kafka-connect-mq-source</name>
2525
<organization>
2626
<name>IBM Corporation</name>

src/main/java/com/ibm/eventstreams/connect/mqsource/MQSourceConnector.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ public class MQSourceConnector extends SourceConnector {
135135
public static final String CONFIG_DOCUMENTATION_TOPIC = "The name of the target Kafka topic.";
136136
public static final String CONFIG_DISPLAY_TOPIC = "Target Kafka topic";
137137

138-
public static String VERSION = "1.3.0";
138+
public static String VERSION = "1.3.1";
139139

140140
private Map<String, String> configProps;
141141

0 commit comments

Comments
 (0)