Skip to content

Commit

Permalink
simplified by having a separate settings.xml file
Browse files Browse the repository at this point in the history
  • Loading branch information
Vignesh Kennadi committed Sep 30, 2024
1 parent d193628 commit 70e8fda
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
9 changes: 9 additions & 0 deletions .github/settings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<settings>
<servers>
<server>
<id>ossrh</id>
<username>${env.MAVEN_USERNAME}</username>
<password>${env.MAVEN_TOKEN}</password>
</server>
</servers>
</settings>
10 changes: 1 addition & 9 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,7 @@ jobs:
- name: Configure Maven settings
run: |
mkdir -p ~/.m2
echo "<settings>
<servers>
<server>
<id>ossrh</id>
<username>${{ secrets.MAVEN_USERNAME }}</username>
<password>${{ secrets.MAVEN_TOKEN }}</password>
</server>
</servers>
</settings>" > ~/.m2/settings.xml
cp .github/settings.xml ~/.m2/settings.xml
- name: Publish to Maven
run: |
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<artifactId>xero-java</artifactId>
<packaging>jar</packaging>
<name>xero-java</name>
<version>8.3.0-alpha.1</version>
<version>8.3.0-alpha.2</version>
<url>https://github.com/XeroAPI/Xero-Java</url>
<description>This is the official Java SDK for Xero API</description>
<licenses>
Expand Down

0 comments on commit 70e8fda

Please sign in to comment.