From e0b9dbc6a455e323a61b79de60b15894812ca4d4 Mon Sep 17 00:00:00 2001 From: Bryan Hunt Date: Tue, 12 Sep 2023 15:02:22 +0100 Subject: [PATCH] Github Actions Maven make more obvious As a returning Java developer I wasn't quite sure where the idiomatic build location was, whether under ~/.m2 or elsewhere, I was also a bit confused by the reference to the pom file, wasn't sure if mvn would be doing some post-processing on it. In any event this seems a more straightforward example to me. --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d00f085..6685d51 100644 --- a/README.md +++ b/README.md @@ -259,6 +259,7 @@ jobs: name: Maven Push Demo steps: - uses: actions/checkout@v2 + - name: Push id: push uses: ./ @@ -268,9 +269,9 @@ jobs: format: "maven" owner: "cloudsmith" repo: "actions" - pom-file: "test/fixture/cloudsmith-maven-example-1.0-SNAPSHOT.pom" + pom-file: "pom.xml" republish: "true" # needed ONLY if version is not changing - file: "test/fixture/cloudsmith-maven-example-1.0-SNAPSHOT.jar" #real file that will repeat versions + file: "target/yourproject-0.0.1-SNAPSHOT.jar" #real file that will repeat versions ``` ### NPM Package Push