Skip to content

Commit

Permalink
JReleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
gastaldi committed Aug 28, 2024
1 parent 421ba9d commit ddc98d5
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 11 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/deploy-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,16 @@ jobs:
VERSION: ${{ env.PAYLOAD_VERSION }}

- name: Deploy to Central
run: |
mvn org.sonatype.plugins:nexus-staging-maven-plugin:1.7.0:deploy-staged-repository -DserverId=ossrh \
-DrepositoryDirectory=./repository \
-DstagingProfileId=io.quarkiverse \
-DnexusUrl=https://s01.oss.sonatype.org/
uses: jreleaser/release-action@v2
env:
JRELEASER_GPG_SECRET_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
JRELEASER_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
JRELEASER_NEXUS2_USERNAME: ${{ secrets.OSSRH_USERNAME }}
JRELEASER_NEXUS2_TOKEN: ${{ secrets.OSSRH_TOKEN }}

# - name: Deploy to Central
# run: |
# mvn org.sonatype.plugins:nexus-staging-maven-plugin:1.7.0:deploy-staged-repository -DserverId=ossrh \
# -DrepositoryDirectory=./repository \
# -DstagingProfileId=io.quarkiverse \
# -DnexusUrl=https://s01.oss.sonatype.org/
11 changes: 5 additions & 6 deletions jreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
signing:
active: ALWAYS
armored: true
verify: false

deploy:
maven:
nexus2:
maven-central:
# List of directories where staged artifacts can be found.
stagingRepositories:
- repository
# URL where the Nexus2 snapshots are enabled.
active: ALWAYS
url: https://s01.oss.sonatype.org/service/local
snapshotUrl: https://s01.oss.sonatype.org/content/repositories/snapshots/
# Closes the staging repository.
closeRepository: true
# Releases the staging repository.
releaseRepository: true
stagingRepositories:
- ./repository

0 comments on commit ddc98d5

Please sign in to comment.