Skip to content

Create maven-publish.yml #1

Create maven-publish.yml

Create maven-publish.yml #1

Workflow file for this run

name: Maven Package
on:
push:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v3
with:
java-version: '21'
distribution: 'temurin'
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 with Maven
run: mvn package
- name: Upload
uses: actions/upload-artifact@v3
with:
name: jar
path: target/*.jar