Skip to content

Commit

Permalink
fix: publish
Browse files Browse the repository at this point in the history
  • Loading branch information
mosoriob committed Jul 31, 2024
1 parent 2eb3e63 commit 8885c21
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/maven-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
echo "<settings>
<servers>
<server>
<id>ossrh</id>
<id>central</id>
<username>${{ secrets.OSSRH_USERNAME }}</username>
<password>${{ secrets.OSSRH_PASSWORD }}</password>
</server>
Expand All @@ -61,9 +61,6 @@ jobs:
</activeProfiles>
</settings>" > ~/.m2/settings.xml
- name: Build with Maven
run: mvn -B package --file pom.xml

- name: Publish to OSSRH
run: mvn deploy
env:
Expand Down
14 changes: 6 additions & 8 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<groupId>edu.isi.kcap</groupId>
<artifactId>ontapi</artifactId>
<version>1.3.8</version>
<version>1.3.9</version>

<scm>
<connection>
Expand Down Expand Up @@ -64,13 +64,6 @@
<maven.compiler.source>1.8</maven.compiler.source>
</properties>

<distributionManagement>
<snapshotRepository>
<id>ossrh</id>
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
</distributionManagement>

<!-- Dependencies -->
<dependencies>
<dependency>
Expand Down Expand Up @@ -158,6 +151,11 @@
<extensions>true</extensions>
<configuration>
<publishingServerId>central</publishingServerId>
<configuration>
<publishingServerId>central</publishingServerId>
<autoPublish>true</autoPublish>
<waitUntil>published</waitUntil>
</configuration>
</configuration>
</plugin>
<plugin>
Expand Down

0 comments on commit 8885c21

Please sign in to comment.