Skip to content

Commit

Permalink
Merge pull request #38 from tagarr/Add-git-workflow
Browse files Browse the repository at this point in the history
Add github workflow
  • Loading branch information
tagarr authored Sep 25, 2020
2 parents 7daa78a + 40e872b commit abdd6dc
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-sink-${{env.VERSION}}-jar-with-dependencies.jar
asset_name: kafka-connect-mq-sink-${{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-sink</artifactId>
<packaging>jar</packaging>
<version>1.3.0</version>
<version>1.3.1</version>
<name>kafka-connect-mq-sink</name>
<organization>
<name>IBM Corporation</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ public class MQSinkConnector extends SinkConnector {
public static final String CONFIG_DOCUMENTATION_MQ_USER_AUTHENTICATION_MQCSP = "Whether to use MQ connection security parameters (MQCSP).";
public static final String CONFIG_DISPLAY_MQ_USER_AUTHENTICATION_MQCSP = "User authentication using MQCSP";

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 abdd6dc

Please sign in to comment.