Skip to content

Commit

Permalink
Try add add signing to release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
stefankoppier committed Sep 22, 2024
1 parent 9fb0d95 commit 088327c
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,20 @@ jobs:
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3

- name: Install GPG
run: |
cat <(echo -e "${{ secrets.MAVEN_CENTRAL_GPG_SECRET_KEY }}") | gpg --batch --import
gpg --list-secret-keys --keyid-format LONG
- name: Staging
run: ./gradlew publish

- name: Publish to Maven Central
run: ./gradlew jreleaserFullRelease -Djreleaser.mavencentral.username=${{ secrets.MAVEN_CENTRAL_USERNAME }} -Djreleaser.mavencentral.password=${{ secrets.MAVEN_CENTRAL_PASSWORD }}
run: |
./gradlew jreleaserFullRelease \
-Dsigning.passphrase=${{ MAVEN_CENTRAL_GPG_SECRET_PASSWORD }} \
-Djreleaser.mavencentral.username=${{ secrets.MAVEN_CENTRAL_USERNAME }} \
-Djreleaser.mavencentral.password=${{ secrets.MAVEN_CENTRAL_PASSWORD }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand Down

0 comments on commit 088327c

Please sign in to comment.