Skip to content

Commit 8665de1

Browse files
authored
Merge pull request #5 from cicirello/development
minor edits related to maven publishing
2 parents 2e40590 + 508d26b commit 8665de1

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Diff for: .github/workflows/maven-publish.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ jobs:
2222
settings-path: ${{ github.workspace }} # location for the settings.xml file
2323

2424
- name: Build with Maven
25-
run: mvn -B package --file pom.xml
25+
run: mvn -B package --file pom.xml -s ${{ github.workspace }}/settings.xml
26+
env:
27+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2628

2729
- name: Update version
2830
run: mvn versions:set -DnewVersion=${GITHUB_REF:11}

Diff for: .m2/settings.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
<profile>
1212
<id>github</id>
1313
<repositories>
14-
<repository>
14+
<repository>
1515
<id>github</id>
1616
<name>GitHub cicirello Apache Maven Packages</name>
17-
<url>https://maven.pkg.github.com/cicirello/JavaPermutationTools</url>
17+
<url>https://maven.pkg.github.com/cicirello</url>
1818
</repository>
1919
</repositories>
2020
</profile>

0 commit comments

Comments
 (0)