Skip to content

E - Oppdatering io.micrometer:micrometer-registry-prometheus:1.13.4 #115

E - Oppdatering io.micrometer:micrometer-registry-prometheus:1.13.4

E - Oppdatering io.micrometer:micrometer-registry-prometheus:1.13.4 #115

# ******************************************************************************************************************
#
# Dette er en auto-generert fil; endringer gjøres i templates/.github/workflows/release_mainline.yml
# Kjør deretter ' make generate-files' for oppdatering av workflow hos prosjekter
#
# ******************************************************************************************************************
name: Release new version
on:
push:
branches:
- main
jobs:
release:
permissions:
packages: "write"
id-token: "write"
contents: "write"
runs-on: ubuntu-latest
steps:
- name: 'Pull repo'
uses: actions/checkout@v2
- name: 'Sett opp bruker i git'
run: git config user.email "${{ github.actor }}@users.noreply.github.com" && git config user.name "Github Actions"
- name: 'Hent versjonsnummer for release fra gradle.properties'
run: echo "VERSION=$(grep -v '^#' gradle.properties | grep 'version=' | cut -d '=' -f2 | xargs)" >> $GITHUB_ENV
- name: 'Java'
uses: actions/setup-java@v3
with:
java-version: 21
distribution: temurin
- name: 'Bygg og oppdater versjon'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: ./gradlew build release --stacktrace -Prelease.useAutomaticVersion=true
- name: 'Sjekk ut release'
uses: actions/checkout@v3
with:
ref: "release-${{ env.VERSION }}"
- name: 'Publiser release som maven-pakke'
run: ./gradlew publish --stacktrace
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}