Skip to content

Bump jacksonVersion from 2.16.2 to 2.17.1 (#116) #142

Bump jacksonVersion from 2.16.2 to 2.17.1 (#116)

Bump jacksonVersion from 2.16.2 to 2.17.1 (#116) #142

Workflow file for this run

name: build and publish
on:
push:
paths-ignore:
- '**.md'
- '.gitignore'
- 'LICENSE'
- 'CODEOWNERS'
- 'kafka/*'
- 'alerts/*'
- '.github/workflows/deploy-alerts.yml'
- '.github/workflows/deploy-kafka.yml'
branches:
- master
jobs:
release:
permissions:
contents: write
packages: write
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master' && !contains(github.event.head_commit.message, 'ci skip')
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Henter flere commits for changelog
- uses: actions/setup-java@v4
with:
java-version: 17
distribution: temurin
cache: gradle
- name: Set release tag
run: |
TAG_NAME="1.$(date "+%Y%m%d%H%M%S")-$(git rev-parse --short HEAD)"
echo "RELEASE_TAG=$TAG_NAME" >> $GITHUB_ENV
- name: Publish packages
run: ./gradlew -Pversion=$RELEASE_TAG build publish
env:
GITHUB_USERNAME: x-access-token
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: ncipollo/release-action@v1
with:
tag: ${{ env.RELEASE_TAG }}
generateReleaseNotes: true