Skip to content

Merge pull request #5 from spoud/release-conf-hub-archive #6

Merge pull request #5 from spoud/release-conf-hub-archive

Merge pull request #5 from spoud/release-conf-hub-archive #6

Workflow file for this run

on:
push:
# Sequence of patterns matched against refs/tags
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
name: Create Release
jobs:
build:
name: Create Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 11
- name: Create release artifact
env:
GITHUB_TOKEN: ${{ secrets.PACKAGES_TOKEN }}
working-directory: ./connect-extension
# The GITHUB_REF tag is in the format 'refs/tags/xxx'.
run: |
export VERSION=$(echo "${GITHUB_REF}" | cut -d "/" -f3)
echo "New version: ${VERSION}"
./gradlew shadowJar createConfluentHubComponentArchive
- name: Create checksums
working-directory: connect-extension/build/libs/
shell: bash
run: for f in *.{jar,zip}; do sha512sum $f > $f.sha512; done
- name: create gh release
uses: ncipollo/[email protected]
with:
artifacts: "connect-extension/build/libs/*"
makeLatest: true