Skip to content

ci: Bump version to 1.0.0-rc4 #18

ci: Bump version to 1.0.0-rc4

ci: Bump version to 1.0.0-rc4 #18

Workflow file for this run

name: Github Release
on:
push:
tags:
- '[0-9]+\.[0-9]+\.[0-9]+\-?[a-zA-Z]*'
jobs:
github-release:
name: Github Release with tgz
strategy:
matrix:
platform: [ "ubuntu-22.04" ]
jdk: ["17"]
runs-on: ${{ matrix.platform }}
permissions:
contents: write
steps:
- name: Get real Kafka version
id: get_real_version
run: |
echo "KAFKA_VERSION=$(echo ${{ github.ref_name }} | cut -d'-' -f1)" >> $GITHUB_OUTPUT
- name: Checkout Code
uses: actions/checkout@v4
- name: Set up JDK ${{ matrix.jdk }}
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.jdk }}
distribution: "zulu"
- name: Setup Gradle
uses: gradle/[email protected]
- name: Build TarGz
run: |
./gradlew --build-cache --refresh-dependencies clean releaseTarGz
- name: Rename TarGz
run: |
mv ./core/build/distributions/kafka_2.13-${{ steps.get_real_version.outputs.KAFKA_VERSION }}.tgz ./core/build/distributions/kafka_2.13-${{ github.ref_name }}.tgz
mv ./core/build/distributions/kafka_2.13-${{ steps.get_real_version.outputs.KAFKA_VERSION }}-site-docs.tgz ./core/build/distributions/kafka_2.13-${{ github.ref_name }}-site-docs.tgz
- name: GitHub Release
uses: softprops/action-gh-release@v1
with:
draft: false
generate_release_notes: true
files: |
./core/build/distributions/kafka_*.tgz