v7.10.0 #36
Workflow file for this run
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: Publish to Nexus | |
on: | |
release: | |
types: [published] | |
permissions: | |
actions: write | |
checks: write | |
contents: write | |
deployments: read | |
issues: write | |
discussions: write | |
packages: write | |
pages: write | |
pull-requests: write | |
security-events: write | |
statuses: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the repo | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.event.release.target_commitish }} | |
- name: Setup Java | |
uses: actions/setup-java@v3 | |
with: | |
java-version: 17 | |
distribution: 'temurin' | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Cache Gradle packages | |
uses: actions/cache@v3 | |
with: | |
path: ~/.gradle/caches | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }} | |
restore-keys: ${{ runner.os }}-gradle | |
- name: Publish with Gradle | |
env: | |
signingKey: ${{secrets.SIGNING_KEY}} | |
signingPassword: ${{secrets.SIGNING_PASSWORD}} | |
OSS_USERNAME: ${{secrets.OSS_USERNAME}} | |
OSS_PASSWORD: ${{secrets.OSS_PASSWORD}} | |
run: | | |
OSS_USERNAME=$OSS_USERNAME OSS_PASSWORD=$OSS_PASSWORD | |
signingKey=$signingKey signingPassword=$signingPassword | |
gradle publishToSonatype closeAndReleaseSonatypeStagingRepository --info |