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
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
You can’t perform that action at this time.
0 commit comments