Skip to content

Support configuration cache (#206) #12

Support configuration cache (#206)

Support configuration cache (#206) #12

Workflow file for this run

name: release
on:
push:
tags:
- v*
workflow_dispatch: {} # support manual runs
permissions:
contents: write
jobs:
publish:
runs-on: ubuntu-latest
environment: publication
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Validate Gradle wrapper
uses: gradle/actions/wrapper-validation@v4
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 11
check-latest: true
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Publish
run: |
./gradlew \
publishToMavenCentral \
publishPlugins \
--no-configuration-cache \
-Dorg.gradle.internal.http.socketTimeout=120000 \
-Dorg.gradle.internal.network.retry.max.attempts=1
env:
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_USER }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_PASSWORD }}
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.GPG_KEY_ARMORED }}
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.GPG_PASSPHRASE }}
GRADLE_PORTAL_PUBLISH_KEY: ${{ secrets.GRADLE_PUBLISH_KEY }}
GRADLE_PORTAL_PUBLISH_SECRET: ${{ secrets.GRADLE_PUBLISH_SECRET }}