Skip to content

Commit

Permalink
Merge pull request #69 from tagarr/Add-github-workflow
Browse files Browse the repository at this point in the history
Add github workflow
  • Loading branch information
tagarr committed Sep 25, 2020
2 parents 8bd20c9 + 3283f76 commit 5192699
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 2 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/github-build-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+' # Push events to matching semver, i.e. 10.0.0

name: Build and create release

jobs:
build:
name: Build and upload release binary
#if: github.event.base_ref == 'refs/heads/master' # only run if on master branch
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Get java-version
run: |
BUILD_VERSION=$( mvn help:evaluate -Dexpression=project.version -q -DforceStdout )
echo "::set-env name=VERSION::$BUILD_VERSION"
- name: Build
run: mvn package
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./target/kafka-connect-mq-source-${{env.VERSION}}-jar-with-dependencies.jar
asset_name: kafka-connect-mq-source-${{env.VERSION}}-jar-with-dependencies.jar
asset_content_type: application/java-archive
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<groupId>com.ibm.eventstreams.connect</groupId>
<artifactId>kafka-connect-mq-source</artifactId>
<packaging>jar</packaging>
<version>1.3.0</version>
<version>1.3.1</version>
<name>kafka-connect-mq-source</name>
<organization>
<name>IBM Corporation</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public class MQSourceConnector extends SourceConnector {
public static final String CONFIG_DOCUMENTATION_TOPIC = "The name of the target Kafka topic.";
public static final String CONFIG_DISPLAY_TOPIC = "Target Kafka topic";

public static String VERSION = "1.3.0";
public static String VERSION = "1.3.1";

private Map<String, String> configProps;

Expand Down

0 comments on commit 5192699

Please sign in to comment.