File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change 11name : Release
22on :
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
510permissions :
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 }}
You can’t perform that action at this time.
0 commit comments