Skip to content

Commit 4817576

Browse files
author
Matt
committed
updating publish parameter
1 parent 14229a3 commit 4817576

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

.github/workflows/github-action-build.yml

+2-3
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: Build with Maven
1919
run: mvn --batch-mode --update-snapshots package
2020

21-
deploy:
21+
publish:
2222
needs: [ "build" ]
2323
if: contains(github.ref_name, 'dev/')
2424
permissions:
@@ -27,7 +27,6 @@ jobs:
2727
runs-on: ubuntu-latest
2828
steps:
2929
- uses: actions/checkout@v3
30-
3130
- uses: actions/setup-java@v3
3231
with:
3332
java-version: '17'
@@ -38,5 +37,5 @@ jobs:
3837
GITHUB_USERNAME: makbn
3938
GITHUB_ACTOR: makbn
4039
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
41-
run: mvn -e --settings settings.xml deploy
40+
run: mvn --settings settings.xml deploy
4241

pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@
159159
<distributionManagement>
160160
<repository>
161161
<id>github</id>
162-
<name>GitHub Packages</name>
162+
<name>GitHub makbn Apache Maven Packages</name>
163163
<url>https://maven.pkg.github.com/makbn/java_leaflet</url>
164164
</repository>
165165
</distributionManagement>

settings.xml

+4-4
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@
99
<profile>
1010
<id>github</id>
1111
<repositories>
12-
<repository>
13-
<id>central</id>
14-
<url>https://repo1.maven.org/maven2</url>
15-
</repository>
1612
<repository>
1713
<id>github</id>
14+
<name>GitHub makbn Apache Maven Packages</name>
1815
<url>https://maven.pkg.github.com/makbn/java_leaflet</url>
1916
<snapshots>
2017
<enabled>true</enabled>
2118
</snapshots>
19+
<releases>
20+
<enabled>true</enabled>
21+
</releases>
2222
</repository>
2323
</repositories>
2424
</profile>

0 commit comments

Comments
 (0)