Workflow file for this run
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
name: Publish Plugin to Portal | |
on: | |
push: | |
tags: | |
- '*' | |
jobs: | |
gradle: | |
runs-on: ubuntu-latest | |
env: | |
GRADLE_PUBLISH_KEY: ${{ secrets.GRADLE_PUBLISH_KEY }} | |
GRADLE_PUBLISH_SECRET: ${{ secrets.GRADLE_PUBLISH_SECRET }} | |
if: ${{ !contains(github.event.head_commit.message, 'ci skip') }} | |
steps: | |
- name: Setup Java | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'adopt' | |
java-version: 17 | |
- name: Checkout Repo | |
uses: actions/checkout@v3 | |
- name: Cache Gradle Caches | |
uses: gradle/[email protected] | |
- name: Run Gradle tasks | |
run: ./gradlew preMerge --continue | |
- name: Publish on Plugin Portal | |
run: ./gradlew --project-dir plugin-build setupPluginUploadFromEnvironment publishPlugins | |
if: success() |