Skip to content

v9.5.1

v9.5.1 #592

name: Build and publish SHOGun
on:
push:
branches:
- main
release:
types: [published]
jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Set up Java 17
uses: actions/[email protected]
with:
java-version: 17
java-package: jdk
architecture: x64
- name: Handle caching of maven repository
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Create maven settings.xml with credentials
uses: whelk-io/maven-settings-xml-action@v2
with:
servers: '[
{ "id": "nexus.terrestris.de", "username": "${{ secrets.NEXUS_USER }}", "password": "${{ secrets.NEXUS_PASSWORD }}" },
{ "id": "terrestris-nexus", "username": "${{ secrets.NEXUS_USER }}", "password": "${{ secrets.NEXUS_PASSWORD }}" },
{ "id": "terrestris-nexus-snapshots", "username": "${{ secrets.NEXUS_USER }}", "password": "${{ secrets.NEXUS_PASSWORD }}" }
]'
- name: Build SHOGun with Maven and publish artifacts to nexus
run: mvn -B deploy