Skip to content

Publish to the Gradle Plugin Portal #2

Publish to the Gradle Plugin Portal

Publish to the Gradle Plugin Portal #2

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 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
- name: Publish Gradle Plugins
uses: gradle/gradle-build-action@v2
with:
arguments: |
assemble
publishPlugins
-Pgradle.publish.key=${{ secrets.GRADLE_PUBLISH_KEY }}
-Pgradle.publish.secret=${{ secrets.GRADLE_PUBLISH_SECRET }}