Skip to content

Commit cfbae02

Browse files
committed
Add option to finish up release
1 parent c2ef911 commit cfbae02

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/release.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
name: Release
22
on:
33
workflow_dispatch:
4+
inputs:
5+
already_published_to_maven_central:
6+
description: 'Has the release already been published to maven central?'
7+
type: boolean
8+
default: false
49

510
permissions:
611
contents: read
@@ -95,6 +100,7 @@ jobs:
95100
uses: gradle/actions/setup-gradle@ac638b010cf58a27ee6c972d7336334ccaf61c96 # v4.4.1
96101

97102
- name: Build and publish artifacts
103+
if: ${{ !inputs.already_published_to_maven_central }}
98104
env:
99105
SONATYPE_USER: ${{ secrets.SONATYPE_USER }}
100106
SONATYPE_KEY: ${{ secrets.SONATYPE_KEY }}
@@ -103,6 +109,7 @@ jobs:
103109
run: ./gradlew assemble spdxSbom publishToSonatype closeAndReleaseSonatypeStagingRepository
104110

105111
- name: Build and publish gradle plugins
112+
if: ${{ !inputs.already_published_to_maven_central }}
106113
env:
107114
SONATYPE_USER: ${{ secrets.SONATYPE_USER }}
108115
SONATYPE_KEY: ${{ secrets.SONATYPE_KEY }}
@@ -114,6 +121,10 @@ jobs:
114121
run: ./gradlew build publishPlugins publishPluginMavenPublicationToSonatypeRepository closeAndReleaseSonatypeStagingRepository
115122
working-directory: gradle-plugins
116123

124+
- name: Build and publish artifacts
125+
if: ${{ inputs.already_published_to_maven_central }}
126+
run: ./gradlew assemble spdxSbom
127+
117128
- name: Collect SBOMs
118129
run: |
119130
mkdir sboms

0 commit comments

Comments
 (0)