Skip to content
This repository was archived by the owner on Jun 4, 2022. It is now read-only.

Commit c2390f0

Browse files
committed
fix github packages
1 parent 7dd7f5b commit c2390f0

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
java-version: 11
2222

2323
- name: 🚀 Deploy to GitHub Packages
24-
run: mvn deploy -B -Dmaven.test.skip=true
24+
run: mvn deploy -B -Dmaven.test.skip=true -P github
2525
env:
2626
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2727

@@ -44,7 +44,7 @@ jobs:
4444
gpg-passphrase: MAVEN_GPG_PASSPHRASE
4545

4646
- name: 🚀 Deploy to Maven Central
47-
run: mvn deploy -B -Dmaven.test.skip=true -P deploy
47+
run: mvn deploy -B -Dmaven.test.skip=true -P ossrh
4848
env:
4949
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
5050
MAVEN_CENTRAL_TOKEN: ${{ secrets.OSSRH_TOKEN }}

pom.xml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
<profiles>
1212
<profile>
13-
<id>deploy</id>
13+
<id>ossrh</id>
1414

1515
<distributionManagement>
1616
<snapshotRepository>
@@ -60,6 +60,16 @@
6060
</plugins>
6161
</build>
6262
</profile>
63+
<profile>
64+
<id>github</id>
65+
66+
<distributionManagement>
67+
<repository>
68+
<id>github</id>
69+
<url>https://maven.pkg.github.com/katsutedev/jcore</url>
70+
</repository>
71+
</distributionManagement>
72+
</profile>
6373
</profiles>
6474

6575
<properties>

0 commit comments

Comments
 (0)