Skip to content

Commit

Permalink
chore(ci/cd): publish to GitHub packages
Browse files Browse the repository at this point in the history
  • Loading branch information
xooooooooox committed Dec 27, 2024
1 parent af911b7 commit 02df92d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/publish-github-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,5 @@ jobs:
./mvnw --batch-mode clean deploy \
-Pcoding,publish-github -DskipTests --settings .mvn/settings.xml
env:
GITHUB_USERNAME: ${{ secrets.GH_USERNAME}}
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
6 changes: 6 additions & 0 deletions .mvn/settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
https://maven.apache.org/xsd/settings-1.0.0.xsd">
<servers>
<server>
<id>github</id>
<username>${env.GITHUB_USERNAME}</username>
<password>${env.GITHUB_TOKEN}</password>
</server>

<server>
<id>central-portal</id>
<username>${env.MAVEN_USERNAME}</username>
Expand Down

0 comments on commit 02df92d

Please sign in to comment.