From 49a2d908875e4cb2abba6e1682061a36d3e42f51 Mon Sep 17 00:00:00 2001 From: Adalbert Makarovych Date: Tue, 9 Jan 2024 16:02:23 +0200 Subject: [PATCH] Created workflow for packaging connector Created GitHub action which will upload plugin during release creation. Created maven profile which will generate plugin (tar file with all dependencies) --- .github/workflows/maven.yml | 8 +++++- pom.xml | 55 +++++++++++++++++++++++++++++++++++++ 2 files changed, 62 insertions(+), 1 deletion(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 014fc9e..aa660bf 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -11,6 +11,7 @@ name: Java CI with Maven on: push: branches: [ "main" ] + tags: "v*" pull_request: branches: [ "main" ] @@ -37,7 +38,12 @@ jobs: # Password or personal access token used to log against the Docker registry password: ${{ secrets.DOCKER_PASSWORD }} - name: Build with Maven - run: mvn -B package --file pom.xml + run: mvn -B package --file pom.xml -P assembly + - name: Release + uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') + with: + files: target/singlestoredb-debezium-connector-*-plugin.tar.gz # Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive - name: Update dependency graph diff --git a/pom.xml b/pom.xml index 8e2eb95..9e4a4cd 100644 --- a/pom.xml +++ b/pom.xml @@ -26,6 +26,9 @@ 4.13.2 3.25.1 + 3.6.0 + 3.2.3 + + + connector-distribution + + posix + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + ${version.failsafe.plugin} + + + true + + + + + + +