-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (40 loc) · 1.27 KB
/
publish.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
name: Publish
on:
workflow_dispatch:
inputs:
version_bump:
description: 'Select version bump'
required: true
type: choice
options:
- major
- minor
- patch
default: 'minor'
jobs:
publish:
runs-on: macos-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 17
- name: Bump version
id: bump_version
uses: MeilCli/bump-release-action@v2
with:
config_path: '.github/bump.yml'
bump: ${{ github.event.inputs.version_bump }}
- name: Publish to Maven Central
env:
NEXT_VERSION: ${{ steps.bump_version.outputs.next_version }}
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.MAVEN_CENTRAL_USERNAME }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.SIGNING_IN_MEMORY_KEY }}
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNING_IN_MEMORY_KEY_PASSWORD }}
run: ./gradlew publish