Skip to content

Commit

Permalink
Updated
Browse files Browse the repository at this point in the history
  • Loading branch information
jerrytfleung committed Jun 10, 2024
1 parent 26462b2 commit 5832028
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions .github/workflows/m2/settings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
http://maven.apache.org/xsd/settings-1.0.0.xsd">
<servers>
<server>
<id>github</id>
<username>${env.GITHUB_USER}</username>
<password>${env.GITHUB_TOKEN}</password>
</server>
</servers>
</settings>
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
- name: Set Version
run: mvn versions:set -DnewVersion=${{ github.event.inputs.version }} -B
- name: Deploy
run: mvn deploy -DskipTests -B -X
run: mvn -s .github/workflows/m2/settings.xml deploy -DskipTests -B -X
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# - name: Figure out the project version from pom.xml
Expand Down

0 comments on commit 5832028

Please sign in to comment.