Skip to content

Commit

Permalink
add GitHub action for publishing plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
siordache committed Feb 4, 2024
1 parent e862997 commit 04b2c79
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
File renamed without changes.
22 changes: 22 additions & 0 deletions .github/workflows/publish-plugin.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
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 }}

0 comments on commit 04b2c79

Please sign in to comment.