Skip to content

Commit

Permalink
Add release action
Browse files Browse the repository at this point in the history
  • Loading branch information
DeLaGuardo committed Oct 17, 2023
1 parent 5acbfdd commit 927c53a
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 3 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Release

on: push

jobs:

build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3

- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
cache: maven

- name: Build
run: |
mvn -Drevision=${{ github.ref_name }} --batch-mode --update-snapshots verify
mv ./target/kafka-connect-plugins-${{ github.ref_name }}-jar-with-dependencies.jar ./kafka-connect-plugins-${{ github.ref_name }}.jar
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
kafka-connect-plugins-${{ github.ref_name }}.jar
3 changes: 2 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@
<groupId>threatgrid</groupId>
<artifactId>kafka-connect-plugins</artifactId>
<description>Collection of Kafka Connect plugins</description>
<version>1.0</version>
<version>${revision}</version>

<properties>
<revision>1.0</revision>
<connect.api.version>3.3.2</connect.api.version>
<junit.jupiter.version>5.9.2</junit.jupiter.version>
<testcontainers.version>1.17.6</testcontainers.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,11 @@
import java.io.StringReader;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.concurrent.atomic.AtomicBoolean;
import java.util.stream.Collectors;

import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.node.ObjectNode;

Expand Down

0 comments on commit 927c53a

Please sign in to comment.