Skip to content

Commit 482ceb5

Browse files
run ci
1 parent 7ced590 commit 482ceb5

File tree

2 files changed

+18
-9
lines changed

2 files changed

+18
-9
lines changed

.github/workflows/github-publish.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,6 @@ jobs:
2222
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
2323
gpg-passphrase: ${{ secrets.GPG_PASSPHRASE }}
2424
- name: Publish package
25-
run: mvn --batch-mode deploy
25+
run: mvn clean deploy -DaltDeploymentRepository=github::default::https://maven.pkg.github.com/contentstack/contentstack-java
26+
27+
# run: mvn --batch-mode deploy

pom.xml

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -86,18 +86,25 @@
8686
</developers>
8787

8888
<distributionManagement>
89-
<!-- <snapshotRepository>-->
90-
<!-- <id>ossrh</id>-->
91-
<!-- <url>https://oss.sonatype.org/content/repositories/snapshots</url>-->
92-
<!-- </snapshotRepository>-->
89+
90+
<!-- Maven Snapshot Repository -->
9391
<snapshotRepository>
94-
<id>github</id>
95-
<url>https://maven.pkg.github.com/contentstack/contentstack-java</url>
92+
<id>ossrh</id>
93+
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
9694
</snapshotRepository>
95+
96+
<!-- GitHub Packages -->
9797
<repository>
98-
<id>ossrh</id>
99-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
98+
<id>github</id>
99+
<url>https://maven.pkg.github.com/contentstack/contentstack-java</url>
100100
</repository>
101+
102+
<!-- Maven Release Repository -->
103+
<!-- <repository>-->
104+
<!-- <id>ossrh</id>-->
105+
<!-- <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>-->
106+
<!-- </repository>-->
107+
101108
</distributionManagement>
102109

103110

0 commit comments

Comments
 (0)