-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add GitHub action for publishing plugin
- Loading branch information
Showing
2 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |