Skip to content

0.1.1

0.1.1 #2

name: Publish kontrakt
on:
release:
types: [published]
jobs:
build:
name: Release kontrakt
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '21'
cache: 'maven'
- name: Publish artifacts
shell: bash
run: |
mvn deploy -e --batch-mode --settings ./.github/.m2/settings.xml --file pom.xml -am -pl kontrakt -DtrimStackTrace=false -Dchangelist= -Dsha1= -Drevision=$NEW_VERSION -Dfile.encoding=UTF-8 -DdeployAtEnd=true
env:
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
GH_ACCESS_TOKEN: ${{ secrets.GH_PAT }}
NEW_VERSION: ${{ github.event.release.tag_name }}