-
-
Notifications
You must be signed in to change notification settings - Fork 3
52 lines (50 loc) · 1.22 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
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