Skip to content

Commit

Permalink
[CI] Upload the NAR package when pushing a tag
Browse files Browse the repository at this point in the history
  • Loading branch information
BewareMyPower committed Dec 29, 2023
1 parent aa2f171 commit a87cff7
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Release
on:
# TODO: remove it
pull_request:
branches:
- master
push:
tags:
- '*'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
release:
name: Release KoP
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '17'
- name: Build artifacts
run: mvn clean install -ntp -B -DskipTests
- name: Create package directory
run: |
mkdir packages
cp ./kafka-impl/target/*.nar packages/
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: packages
path: ./packages

0 comments on commit a87cff7

Please sign in to comment.