Skip to content

Release

Release #19

Workflow file for this run

name: Release
on:
workflow_dispatch:
inputs:
branch:
type: string
description: Branch name to release
required: true
default: main
section:
type: choice
description: Version section to increment
options:
- patch
- minor
- major
required: true
default: patch
version:
type: string
description: ...or manually define version like 1.2.3, 1.2.3-suffix
required: false
# Called from release-auto
workflow_call:
inputs:
branch:
type: string
required: false
default: main
section:
type: string
required: false
default: patch
version:
type: string
required: false
jobs:
release:
uses: coditory/workflows/.github/workflows/release.yml@v1
secrets: inherit
with:
branch: ${{ inputs.branch }}
section: ${{ inputs.section }}
version: ${{ inputs.version }}
java-version: 17
release-command: |
./gradlew publishPlugins \
-Pgradle.publish.key=$GRADLE_PUBLISH_KEY \
-Pgradle.publish.secret=$GRADLE_PUBLISH_SECRET \
-Pversion=$NEXT_VERSION
version-command: ./gradlew version --quiet --no-scan