Skip to content

Publish plugins

Publish plugins #4

# This file was generated using Kotlin DSL (.github/workflows/publish-plugins.main.kts).
# If you want to modify the workflow, please change the Kotlin file and regenerate this YAML file.
# Generated with https://github.com/typesafegithub/github-workflows-kt
name: 'Publish plugins'
on:
workflow_dispatch: {}
pull_request:
types:
- 'opened'
branches:
- 'release'
paths:
- 'version.txt'
jobs:
check_yaml_consistency:
name: 'Check YAML consistency'
runs-on: 'ubuntu-latest'
steps:
- id: 'step-0'
name: 'Check out'
uses: 'actions/checkout@v4'
- id: 'step-1'
name: 'Execute script'
run: 'rm ''.github/workflows/publish-plugins.yaml'' && ''.github/workflows/publish-plugins.main.kts'''
- id: 'step-2'
name: 'Consistency check'
run: 'git diff --exit-code ''.github/workflows/publish-plugins.yaml'''
gradle-plugins-publishing:
runs-on: 'ubuntu-latest'
needs:
- 'check_yaml_consistency'
steps:
- id: 'step-0'
uses: 'actions/checkout@v4'
- id: 'step-1'
uses: 'actions/setup-java@v3'
with:
java-version: '17'
distribution: 'temurin'
- id: 'step-2'
uses: 'gradle/gradle-build-action@v2'
- id: 'step-3'
run: './gradlew publishPlugins -Pgradle.publish.key=${{ secrets.gradle_publish_key }} -Pgradle.publish.secret=${{ secrets.gradle_publish_secret }}'