diff --git a/.github/workflows/maven-publish.yml b/.github/workflows/maven-publish.yml new file mode 100644 index 0000000..d2e60d3 --- /dev/null +++ b/.github/workflows/maven-publish.yml @@ -0,0 +1,31 @@ +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