Skip to content

Publish to the Gradle Plugin Portal #1

Publish to the Gradle Plugin Portal

Publish to the Gradle Plugin Portal #1

name: Publish to the Gradle Plugin Portal
on: [workflow_dispatch]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'zulu'
- name: Publish Gradle Plugins
uses: gradle/gradle-build-action@v2
with:
arguments: |
build
publishPlugins
-Pgradle.publish.key=${{ secrets.GRADLE_PUBLISH_KEY }}
-Pgradle.publish.secret=${{ secrets.GRADLE_PUBLISH_SECRET }}