Skip to content

Commit

Permalink
feat: Publish to maven central
Browse files Browse the repository at this point in the history
  • Loading branch information
jecos committed Oct 7, 2024
1 parent 27f054e commit 8f408bc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ jobs:
java-version: '11'
distribution: 'adopt'
server-id: ossrh # Value of the distributionManagement/repository/id field of the pom.xml
server-username: OSSRH_USERNAME
server-password: OSSRH_PASSWORD
gpg-private-key: ${{ secrets.OSSRH_GPG_SECRET_KEY }}
server-username: SONATYPE_USERNAME
server-password: SONATYPE_PASSWORD
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
- id: publish-to-central
name: Publish to Central Repository
run: mvn clean -Dgpg.passphrase=${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }} deploy
run: mvn clean -Dgpg.passphrase=${{ secrets.GPG_PASSPHRASE }} deploy
env:
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
OSSRH_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
6 changes: 5 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<groupId>bio.ferlab</groupId>
<artifactId>fhavro</artifactId>
<packaging>jar</packaging>
<version>0.0.10-SNAPSHOT</version>
<version>0.0.10</version>
<name>fhavro</name>
<description>The fhavro project is to serialize FHIR v4.0.7 resources in Avro, and vice-versa.</description>
<url>https://github.com/Ferlab-Ste-Justine/fhavro</url>
Expand Down Expand Up @@ -118,6 +118,10 @@
<id>ossrh</id>
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
<repository>
<id>ossrh</id>
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
</distributionManagement>
<build>
<plugins>
Expand Down

0 comments on commit 8f408bc

Please sign in to comment.