-
-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (58 loc) · 1.5 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
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
release-command: ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository -Pversion=$NEXT_VERSION
snapshot-command: ./gradlew publishToSonatype -Pversion=$NEXT_VERSION
version-command: ./gradlew version --quiet --no-scan