Skip to content
This repository has been archived by the owner on Apr 12, 2023. It is now read-only.

Commit

Permalink
Create release in github action
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewinci committed Jul 27, 2020
1 parent 5ae3a7d commit 77345f9
Show file tree
Hide file tree
Showing 2 changed files with 96 additions and 10 deletions.
88 changes: 78 additions & 10 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,25 @@
name: CI
name: Release

on:
push:
branches: [ master ]
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
# branches: [ master ]

jobs:

build-deb:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Setup Java JDK
uses: actions/[email protected]
with:
java-version: 14
java-package: jdk

- name: Gradle package
run: "./gradlew :packageApp"

Expand All @@ -25,19 +28,18 @@ jobs:
name: insulator-debian
path: insulator*.deb


build-mac:
runs-on: macos-latest

steps:
- uses: actions/checkout@v2

- name: Setup Java JDK
uses: actions/[email protected]
with:
java-version: 14
java-package: jdk

- name: Gradle package
run: "./gradlew :packageApp"

Expand All @@ -46,23 +48,89 @@ jobs:
name: insulator-macos
path: Insulator*.dmg


build-win:
runs-on: windows-latest

steps:
- uses: actions/checkout@v2

- name: Setup Java JDK
uses: actions/[email protected]
with:
java-version: 14
java-package: jdk

- name: Gradle package
run: "./gradlew :packageApp"

- uses: actions/upload-artifact@v2
with:
name: insulator-win
path: Insulator*.exe

build:
name: Upload Release Asset
runs-on: ubuntu-latest
needs: [build-deb, build-mac, build-win]
steps:
- 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: Download mac asset from previous jobs
uses: actions/download-artifact@v2
with:
name: insulator-macos
- name: Zip artifact
run: |
zip --junk-paths insulator-mac Insulator-*.dmg
- name: Upload mac os 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: ./insulator-mac.zip
asset_name: insulator-mac.zip
asset_content_type: application/zip

- name: Download win asset from previous jobs
uses: actions/download-artifact@v2
with:
name: insulator-win
- name: Zip artifact
run: |
zip --junk-paths insulator-win Insulator-*.exe
- name: Upload win 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: ./insulator-win.zip
asset_name: insulator-win.zip
asset_content_type: application/zip

- name: Download debian asset from previous jobs
uses: actions/download-artifact@v2
with:
name: insulator-debian
- name: Zip artifact
run: |
zip --junk-paths insulator-debian insulator*.deb
- name: Upload debian 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: ./insulator-debian.zip
asset_name: insulator-debian.zip
asset_content_type: application/zip
18 changes: 18 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Insulator

![Release](https://github.com/darka91/insulator/workflows/Release/badge.svg)

Insulator is a tool to help development of kafka based applications.

🚨 **Currently under development, use at your own risk** 🚨

## Features

The latest version supports the following features:

- SSL and SASL authentication
- List topics
- Consumer with Avro deserialization and seek
- List subjects in schema registry
- Show all schema version for a certain subject

0 comments on commit 77345f9

Please sign in to comment.