Add built jar file to a release
Need to attach built jar file to a published release.
.github/workflows/release.yaml
.github/workflows/release.yaml
diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml
index 883c2937b8f..f0c3b51cc57 100644
--- a/.github/workflows/release.yaml
+++ b/.github/workflows/release.yaml
@@ -37,6 +37,13 @@ jobs:
           export VERSION=$(mvn -q -Dexec.executable=echo -Dexec.args='${project.version}' -DbuildVersion=${{ github.event.release.tag_name }} --non-recursive exec:exec)
           echo ::set-output name=version::${VERSION}
 
+      - name: Upload files to a GitHub release
+        uses: svenstaro/upload-release-action@2.2.1
+        with:
+          repo_token: ${{ secrets.GITHUB_TOKEN }}
+          file: kafka-ui-api/target/kafka-ui-api-${{ steps.build.outputs.version }}.jar
+          tag: ${{ github.event.release.tag_name }}
+
       - name: Archive JAR
         uses: actions/upload-artifact@v2
         with:
