Skip to content

Commit 3abf706

Browse files
author
Matt
committed
adding local settings for maven deployment
1 parent f65c751 commit 3abf706

File tree

4 files changed

+11
-27
lines changed

4 files changed

+11
-27
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,5 @@ jobs:
3737
env:
3838
GITHUB_USERNAME: makbn
3939
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40-
run: mvn deploy
40+
run: mvn --settings .mvn/settings.xml deploy
4141

.github/workflows/github-action-deploy.yml

-25
This file was deleted.

.mvn/settings.xml

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2+
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 https://maven.apache.org/xsd/settings-1.0.0.xsd">
3+
<servers>
4+
<server>
5+
<id>github</id>
6+
<username>${env.GITHUB_USERNAME}</username>
7+
<password>${env.GITHUB_TOKEN}</password>
8+
</server>
9+
</servers>
10+
</settings>

pom.xml

-1
Original file line numberDiff line numberDiff line change
@@ -163,5 +163,4 @@
163163
<url>https://maven.pkg.github.com/makbn/java_leaflet</url>
164164
</repository>
165165
</distributionManagement>
166-
167166
</project>

0 commit comments

Comments
 (0)