Skip to content

Commit 5d3ac13

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

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,14 +100,20 @@ 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 }}
101107
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
102108
GPG_PASSWORD: ${{ secrets.GPG_PASSWORD }}
103109
run: ./gradlew assemble spdxSbom publishToSonatype closeAndReleaseSonatypeStagingRepository
104110

111+
- name: Build and publish artifacts
112+
if: ${{ inputs.already_published_to_maven_central }}
113+
run: ./gradlew assemble spdxSbom
114+
105115
- name: Build and publish gradle plugins
116+
if: ${{ !inputs.already_published_to_maven_central }}
106117
env:
107118
SONATYPE_USER: ${{ secrets.SONATYPE_USER }}
108119
SONATYPE_KEY: ${{ secrets.SONATYPE_KEY }}

0 commit comments

Comments
 (0)