Skip to content

Release

Release #74

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
snapshot:
type: boolean
description: Snapshot version
required: true
default: 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
snapshot:
type: boolean
required: false
default: false
jobs:
release:
uses: coditory/workflows/.github/workflows/release.yml@v1
secrets: inherit
with:
branch: ${{ inputs.branch }}
section: ${{ inputs.section }}
version: ${{ inputs.version }}
snapshot: ${{ inputs.snapshot }}
java-version: 21
debug: true
release-command: echo "Simulating release publication $NEXT_VERSION"
# release-command: ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository -Pversion=%NEXT_VERSION%
snapshot-command: echo "Simulating snapshot publication $NEXT_VERSION variable has $(echo "$GRADLE_PUBLISH_KEY" | wc -c) characters"
# snapshot-command: ./gradlew publishToSonatype -Pversion=%NEXT_VERSION%