Update actions/setup-java digest to 2dfa201 (#141) #43
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Release" | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
publish: | |
name: "Publish to Sonatype" | |
runs-on: macos-latest | |
permissions: | |
contents: read | |
steps: | |
- name: "Checkout sources" | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 | |
- name: "Set up Java" | |
uses: actions/setup-java@2dfa2011c5b2a0f1489bf9e433881c92c1631f88 # v4 | |
with: | |
distribution: 'zulu' | |
java-version-file: '.java-version' | |
- name: "Setup gradle" | |
uses: gradle/actions/setup-gradle@16bf8bc8fe830fa669c3c9f914d3eb147c629707 # v4 | |
- name: "Build" | |
run: ./gradlew build | |
- name: "Publish package" | |
run: ./gradlew publishToSonatype | |
env: | |
ORG_GRADLE_PROJECT_sonatypeUsername: ${{ secrets.ORG_GRADLE_PROJECT_SONATYPE_USERNAME }} | |
ORG_GRADLE_PROJECT_sonatypePassword: ${{ secrets.ORG_GRADLE_PROJECT_SONATYPE_PASSWORD }} |