5.7.0 #52
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 | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- 'main' | |
paths: | |
- 'version.properties' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
environment: release | |
steps: | |
- uses: actions/checkout@main | |
- name: Set up JDK 17 | |
uses: actions/setup-java@main | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
cache: 'gradle' | |
- name: Setup Gradle | |
uses: gradle/gradle-build-action@main | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Publish with Gradle | |
env: | |
KDBINSIDEBRAINS_RELEASE_PLUGIN_TOKEN: ${{secrets.KDBINSIDEBRAINS_RELEASE_PLUGIN_TOKEN}} | |
run: ./gradlew publishPlugin |