Skip to content

Merge pull request #36 from naviqore/feature/NAV-72-fix-docker-publis… #2

Merge pull request #36 from naviqore/feature/NAV-72-fix-docker-publis…

Merge pull request #36 from naviqore/feature/NAV-72-fix-docker-publis… #2

Workflow file for this run

name: Maven publish
on:
push:
branches: [ "main" ]
tags:
- 'v[0-9]+\.[0-9]+\.[0-9]+(-.*)?'
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- name: Setup
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '21'
cache: 'maven'
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
settings-path: ${{ github.workspace }} # location for the settings.xml file
- name: Build
run: mvn -B package --file pom.xml
- name: Publish
run: mvn deploy -s $GITHUB_WORKSPACE/settings.xml
env:
GITHUB_TOKEN: ${{ github.token }}