Publish release 0.2.0 on 8796c726b9145f11ce680327551bf9079dced10f by @ConduktorBot #4
Workflow file for this run
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: Publish release | |
run-name: Publish release ${{ github.ref_name }} on ${{ github.sha }} by @${{ github.actor }} | |
on: | |
push: | |
tags: | |
- '*' | |
workflow_dispatch: | |
jobs: | |
publish-release: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
packages: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Check release version | |
run: | | |
if [[ "${{ github.ref_type }}" == "tag" ]]; then | |
echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> "$GITHUB_ENV" | |
else | |
echo "Ref ${GITHUB_REF} is not a tag" | |
exit 1 | |
fi | |
- name: Set up JDK 21 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '21' | |
distribution: 'temurin' | |
- name: Deploy | |
run: mvn -DskipTests --batch-mode deploy | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Create Github Release | |
uses: ncipollo/release-action@v1 | |
with: | |
name: "${{ env.RELEASE_VERSION }}" | |
tag: ${{ env.RELEASE_VERSION }} | |
artifacts: "${{ github.workspace }}/target/azure-kafka-oauthbearer-*.jar" | |
token: ${{ secrets.GITHUB_TOKEN }} |