Update maven-publish.yml

This commit is contained in:
death-claw
2023-05-13 17:20:40 +01:00
committed by GitHub
parent 79739b80f9
commit a833a0b1b2
+2 -8
View File
@@ -4,8 +4,7 @@
name: Maven Package
on:
release:
types: [created]
workflow_dispatch:
jobs:
build:
@@ -26,9 +25,4 @@ jobs:
settings-path: ${{ github.workspace }} # location for the settings.xml file
- name: Build with Maven
run: mvn -B package --file pom.xml
- name: Publish to GitHub Packages Apache Maven
run: mvn deploy -B -s $GITHUB_WORKSPACE/settings.xml
env:
GITHUB_TOKEN: ${{ github.token }}
run: mvn -B install --file pom.xml