Skip to content

Commit

Permalink
chore(ci/cd): publish to central
Browse files Browse the repository at this point in the history
  • Loading branch information
xooooooooox committed Dec 27, 2024
1 parent efc2d64 commit 0cfcb65
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/publish-github-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Publish to GitHub Packages
run: |
./mvnw --batch-mode clean deploy \
-DaltDeploymentRepository=github::https://maven.pkg.github.com/xooooooooox/radp -DskipTests \
-Pcoding,publish-github -DskipTests \
-DskipTests
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
20 changes: 20 additions & 0 deletions .mvn/settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,25 @@
<setting.gpg.keyname>${env.MAVEN_GPG_KEYID}</setting.gpg.keyname>
</properties>
</profile>
<profile>
<id>publish-central</id>
<properties>
<auto.release.enabled>true</auto.release.enabled>
<devops.release.arguments>-Pcoding,publish-central -DskipTests</devops.release.arguments>
</properties>
</profile>
<profile>
<id>publish-github</id>
<properties>
<auto.release.enabled>true</auto.release.enabled>
<devops.release.arguments>-Pcoding,publish-github -DskipTests</devops.release.arguments>
<altSnapshotDeploymentRepository>
github::https://maven.pkg.github.com/xooooooooox/radp
</altSnapshotDeploymentRepository>
<altReleaseDeploymentRepository>
github::https://maven.pkg.github.com/xooooooooox/radp
</altReleaseDeploymentRepository>
</properties>
</profile>
</profiles>
</settings>

0 comments on commit 0cfcb65

Please sign in to comment.