Skip to content

Merge pull request #5 from cosic/submit-review #8

Merge pull request #5 from cosic/submit-review

Merge pull request #5 from cosic/submit-review #8

Workflow file for this run

name: Publish Plugin to Portal
on:
push:
tags:
- '*'
jobs:
publish:
runs-on: macos-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: Checkout Repo
uses: actions/checkout@v4
- id: get_version
uses: battila7/get-version-action@v2.2.1
- name: Set version
run: echo "RELEASE_VERSION="${{ steps.get_version.outputs.version-without-v }} >> $GITHUB_ENV
- name: Cache Gradle Caches
uses: gradle/actions/setup-gradle@v3
- name: Run Gradle tasks
run: ./gradlew preMerge --continue
- name: Publish on Plugin Portal
run: ./gradlew --project-dir plugin-build setupPluginUploadFromEnvironment publishPlugins
if: success()