Skip to content

Commit

Permalink
adding mvn settings
Browse files Browse the repository at this point in the history
  • Loading branch information
hlafaille committed Dec 11, 2024
1 parent 2d85f27 commit 804f570
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/maven-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,11 @@ jobs:
settings-path: ${{ github.workspace }} # location for the settings.xml file
- name: Install dependencies
run: cd src/main/frontend && npm i
- name: Write Maven Settings
run: echo $MVN_SETTINSG > ~/.m2/settings.xml
- name: Build with Maven
run: mvn -B package --file pom.xml

- name: Publish to GitHub Packages Apache Maven
run: mvn deploy -s $GITHUB_WORKSPACE/settings.xml
run: mvn deploy -s ~/.m2/settings.xml
env:
GITHUB_TOKEN: ${{ github.token }}
7 changes: 7 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@
<version>0.0.1</version>
<name>billtracker</name>
<description>A bill tracking web application.</description>
<distributionManagement>
<repository>
<id>github</id>
<name>GitHub Packages</name>
<url>https://maven.pkg.github.com/Kerosene-Labs/billtracker</url>
</repository>
</distributionManagement>
<url />
<licenses>
<license />
Expand Down

0 comments on commit 804f570

Please sign in to comment.