Skip to content

Update maven-publish.yml #2

Update maven-publish.yml

Update maven-publish.yml #2

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 17
uses: actions/setup-java@v3
with:
java-version: '17'
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