Skip to content

Commit 583a5fc

Browse files
Merge pull request #42 from quantori/bug-fix/change-release-job
add choice selector for release job
2 parents 359b769 + e70e25a commit 583a5fc

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

.github/workflows/release.yaml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,15 @@ on:
77
description: 'Branch to build'
88
required: true
99
default: 'main'
10+
module:
11+
description: 'Module to publish'
12+
required: true
13+
type: choice
14+
options:
15+
- cqp-api
16+
- cqp-core
17+
- cqp-storage-elasticsearch
18+
default: cqp-core
1019

1120
jobs:
1221
build:
@@ -35,8 +44,8 @@ jobs:
3544
- name: Setup Gradle
3645
uses: gradle/actions/setup-gradle@af1da67850ed9a4cedd57bfd976089dd991e2582 # v4.0.0
3746

38-
- name: Build with Gradle Wrapper
39-
run: ./gradlew uploadToMavenCentral
47+
- name: Publish selected module
48+
run: ./gradlew :${{ github.event.inputs.module }}:uploadToMavenCentral
4049
env:
4150
MAVEN_CENTRAL_USERNAME: ${{ secrets.MavenCentralUsername }}
4251
MAVEN_CENTRAL_PASSWORD: ${{ secrets.MavenCentralPassword }}

cqp-build/src/main/kotlin/com/quantori/cqp/build/CqpJavaLibraryPlugin.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ class CqpJavaLibraryPlugin : Plugin<Project> {
145145
val zipBundle = project.tasks.register<Zip>("zipBundle") {
146146
group = "publishing"
147147
description = "Zips the published files for Maven Central upload"
148-
archiveFileName.set("central-bundle.zip")
148+
archiveFileName.set("central-bundle-${name}-${version}.zip")
149149
destinationDirectory.set(project.layout.buildDirectory.dir("distributions").get().asFile)
150150
dependsOn(publishTask)
151151
from(project.layout.buildDirectory.dir("repos/releases").get().asFile)

0 commit comments

Comments
 (0)