Skip to content

Migrate to use com.vanniktech.maven.publish (#201) #10

Migrate to use com.vanniktech.maven.publish (#201)

Migrate to use com.vanniktech.maven.publish (#201) #10

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@v3
- 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@v3
- 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 }}