Skip to content

Commit 5679263

Browse files
committed
Add option to skip maven publication and create the release
1 parent 92bcce4 commit 5679263

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@ name: "Create release"
22

33
on:
44
workflow_dispatch:
5+
inputs:
6+
skip-publication:
7+
description: 'Skip publication of artifacts to Maven Central'
8+
required: false
9+
default: false
10+
type: boolean
511

612
env:
713
VERSION_FILE: gradle.properties
@@ -25,6 +31,7 @@ jobs:
2531
version-file: ${{ env.VERSION_FILE }}
2632
version-file-extraction-pattern: ${{ env.VERSION_PATTERN }}
2733
build-and-test:
34+
if: github.event.inputs.skip-publication != 'true' || !cancelled()
2835
uses: ./.github/workflows/build-and-test.yml
2936
publish_artifacts:
3037
# permissions required for sigstore signature
@@ -34,6 +41,7 @@ jobs:
3441
needs:
3542
- version
3643
- build-and-test
44+
if: github.event.inputs.skip-publication != 'true' || !cancelled()
3745
runs-on: macos-latest
3846
steps:
3947
- name: 'Checkout Repository'
@@ -79,6 +87,7 @@ jobs:
7987
needs:
8088
- publish_artifacts
8189
- version
90+
if: github.event.inputs.skip-publication == 'true' || !cancelled()
8291
steps:
8392
- name: 'Checkout Repository'
8493
uses: actions/checkout@v4

0 commit comments

Comments
 (0)