Skip to content

Commit bf488f6

Browse files
GitHub Package Release
1 parent 73d3b6f commit bf488f6

File tree

3 files changed

+18
-18
lines changed

3 files changed

+18
-18
lines changed

.github/workflows/maven-publish.yml renamed to .github/workflows/github-package-publish.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
name: Publish package to the Maven Central Repository
2-
#on: [ push ] # Trigger the workflow when a push (commit) event occurs
3-
on:
4-
release:
5-
types: [ created ]
1+
name: Publishing to GitHub Packages
2+
on: [ push ] # Trigger the workflow when a push (commit) event occurs
3+
#on:
4+
# release:
5+
# types: [ created ]
66
jobs:
77
publish-github:
88
runs-on: ubuntu-latest

.github/workflows/github-publish.yml renamed to .github/workflows/maven--package-publish.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
name: Publish package to the Github Repository
2-
on: [ push ] # Trigger the workflow when a push (commit) event occurs
3-
#on:
4-
# release:
5-
# types: [ created ]
1+
name: Publishing to Maven Packages
2+
#on: [ push ] # Trigger the workflow when a push (commit) event occurs
3+
on:
4+
release:
5+
types: [ created ]
66
jobs:
77
publish-maven:
88
runs-on: ubuntu-latest

pom.xml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -94,17 +94,17 @@
9494
</snapshotRepository>
9595

9696
<!-- GitHub Packages-->
97-
<!-- <repository>-->
98-
<!-- <id>github</id>-->
99-
<!-- <url>https://maven.pkg.github.com/contentstack/contentstack-java</url>-->
100-
<!-- </repository>-->
101-
102-
<!-- Maven Release Repository-->
10397
<repository>
104-
<id>ossrh</id>
105-
<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>
106100
</repository>
107101

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+
108108
</distributionManagement>
109109

110110

0 commit comments

Comments
 (0)