name: "Release Gradle project"
on: [ workflow_dispatch ]

jobs:
    build:
        runs-on: ubuntu-latest
        steps:
            -   name: Check out project
                uses: actions/checkout@v2
            -   name: Set up JDK 6
                uses: actions/setup-java@v1
                with:
                    java-version: '6.0.119'
                    java-package: jdk
                    architecture: x64
            -   name: Set up JDK 8
                uses: actions/setup-java@v1
                with:
                    java-version: '8'
            -   name: Build and deploy with Gradle
                uses: eskatos/gradle-command-action@v1
                with:
                    arguments: clean -i build -Porg.gradle.java.installations.fromEnv=JAVA_HOME_6_0_119_X64 -PjavaCompilerVersion=6 -Pteamcity-build-scan-plugin.acceptGradleTOS=true
                    wrapper-cache-enabled: true
                    dependencies-cache-enabled: true
                    configuration-cache-enabled: false

name: "Release Gradle project"
on: [ workflow_dispatch ]

jobs:
    build:
        runs-on: ubuntu-latest
        steps:
            -   name: Check out project
                uses: actions/checkout@v2
            -   name: Set up JDK 6
                uses: actions/setup-java@v1
                with:
                    java-version: '6.0.119'
                    java-package: jdk
                    architecture: x64
            -   name: Set up JDK 8
                uses: actions/setup-java@v1
                with:
                    java-version: '8'
            -   name: Build and deploy with Gradle
                uses: eskatos/gradle-command-action@v1
                with:
                    arguments: clean -i build generatePomFileForPluginPublicationPublication bintrayUpload -PRELEASE -Porg.gradle.java.installations.fromEnv=JAVA_HOME_6_0_119_X64 -PjavaCompilerVersion=6 -Pteamcity-build-scan-plugin.acceptGradleTOS=true
                    wrapper-cache-enabled: true
                    dependencies-cache-enabled: true
                    configuration-cache-enabled: false

Change Gradle tasks to invoke plugin release
Change Gradle tasks to invoke plugin release
