.github/workflows/publish.yaml
changeset 70 252e1a0104e4
child 71 92cbb2785189
equal deleted inserted replaced
69:6cbc53dffd7a 70:252e1a0104e4
       
     1 # .github/workflows/publish.yml
       
     2 
       
     3 name: Publish
       
     4 on:
       
     5   release:
       
     6     types: [released, prereleased]
       
     7 jobs:
       
     8   publish:
       
     9     name: Release build and publish
       
    10     runs-on: macOS-latest
       
    11     steps:
       
    12       - name: Check out code
       
    13         uses: actions/checkout@v4
       
    14       - name: Set up JDK 21
       
    15         uses: actions/setup-java@v4
       
    16         with:
       
    17           distribution: 'zulu'
       
    18           java-version: 21
       
    19       - name: Publish to MavenCentral
       
    20         run: ./gradlew publishToMavenCentral --no-configuration-cache
       
    21         env:
       
    22           ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.MAVEN_CENTRAL_USERNAME }}
       
    23           ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
       
    24           ORG_GRADLE_PROJECT_signingInMemoryKeyId: ${{ secrets.SIGNING_KEY_ID }}
       
    25           ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNING_PASSWORD }}
       
    26           ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.GPG_KEY_CONTENTS }}