Skip to content

Commit

Permalink
ci: add deployment to Maven Central
Browse files Browse the repository at this point in the history
Refs: #26
  • Loading branch information
ariwk committed Jun 27, 2024
1 parent 97824cd commit dfaf9de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/maven-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
"id": "mavenCentralDeploy",
"properties":
{
"altDeploymentRepository": "ossrh::default::https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
"altDeploymentRepository": "ossrh::default::https://oss.sonatype.org/content/repositories/snapshots/"
}
}
]
Expand All @@ -84,5 +84,5 @@ jobs:
env:
GITHUB_TOKEN: ${{ github.token }}
- name: Publish to Maven Central
if: ${{ !endsWith(steps.artefact_version.outputs.version, '-SNAPSHOT') && github.ref == 'refs/heads/main' }}
# if: ${{ !endsWith(steps.artefact_version.outputs.version, '-SNAPSHOT') && github.ref == 'refs/heads/main' }}
run: mvn --batch-mode deploy -PmavenCentralDeploy

0 comments on commit dfaf9de

Please sign in to comment.