Skip to content

Commit 52b450d

Browse files
committed
change release workflow so it can be triggered on demand and build just the gradle plugin
1 parent 21bcba2 commit 52b450d

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

.github/workflows/publish.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@ name: Publish
22
on:
33
release:
44
types: [released, prereleased]
5+
workflow_dispatch:
6+
inputs:
7+
module:
8+
description: 'Module to publish'
9+
required: false
10+
type: choice
11+
options:
12+
- ''
13+
- ':chasm-gradle-plugin:'
14+
default: ''
515
jobs:
616
publish:
717
name: Release build and publish
@@ -17,7 +27,7 @@ jobs:
1727
java-version: '21'
1828

1929
- name: Publish to MavenCentral
20-
run: ./gradlew publishToMavenCentral --no-configuration-cache
30+
run: ./gradlew ${{ github.event.inputs.module }}publishToMavenCentral --no-configuration-cache
2131
env:
2232
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.MAVEN_CENTRAL_USERNAME }}
2333
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.MAVEN_CENTRAL_PASSWORD }}

0 commit comments

Comments
 (0)