added a log to easily see what kafka rapid is doing #43
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build and publish | |
on: | |
push: | |
paths-ignore: | |
- "**.md" | |
- ".gitignore" | |
- "LICENCE" | |
- "CODEOWNERS" | |
branches: | |
- main | |
jobs: | |
build-publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: temurin | |
java-version: 17 | |
cache: gradle | |
- name: test and build | |
run: ./build.sh | |
- name: prepare release | |
run: ./prepare-release.sh | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: publish | |
run: ./gradlew -Pversion="$VERSION_TAG" publish | |
env: | |
ORG_GRADLE_PROJECT_githubUser: x-access-token | |
ORG_GRADLE_PROJECT_githubPassword: ${{ secrets.GITHUB_TOKEN }} | |
- name: create release | |
uses: ncipollo/release-action@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag: ${{ env.VERSION_TAG }} | |
name: ${{ env.VERSION_TAG }} | |
body: ${{ env.CHANGE_LOG }} | |
draft: false | |
prerelease: false | |