Skip to content

Commit

Permalink
Merge pull request #33 from hivemq/improvement/adapted-publish-workfl…
Browse files Browse the repository at this point in the history
…ow-4.5

[4.5] adapted publish workflow
  • Loading branch information
DC2-DanielKrueger authored Apr 13, 2021
2 parents a6ec908 + 0bf0e86 commit 8b76ce7
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,23 @@ on:
- created

jobs:
build:
publish:
environment: mavenCentralPublish
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
- name: setup java
uses: actions/setup-java@v1
uses: actions/setup-java@v2
with:
java-version: "11"
distribution: 'adopt'
java-version: '11'
- name: Check
run: ./graldew check
run: ./gradlew check
- name: Publish to Maven Central
env:
ORG_GRADLE_PROJECT_signKey: ${{ secrets.SIGN_KEY }}
ORG_GRADLE_PROJECT_signKeyPass: ${{ secrets.SIGN_KEY_PASS }}
ORG_GRADLE_PROJECT_sonatypeUsername: ${{ secrets.SONATYPE_USERNAME }}
ORG_GRADLE_PROJECT_sonatypePassword: ${{ secrets.SONATYPE_PASSWORD }}
run: ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository

0 comments on commit 8b76ce7

Please sign in to comment.