Skip to content

1.7.1

1.7.1 #50

name: Publish kontrakt
on:
release:
types: [published]
jobs:
build:
name: Bygg pull-request
runs-on: ubuntu-latest
permissions:
contents: read
packages: 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 -B --settings ./.m2/settings.xml -am -pl kontrakter -DtrimStackTrace=false -Dchangelist= -Dsha1= -Drevision=$NEW_VERSION -Dfile.encoding=UTF-8
env:
GITHUB_USERNAME: x-access-token
GITHUB_PASSWORD: ${{ secrets.GH_PAT }}
NEW_VERSION: ${{ github.event.release.tag_name }}