Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
name: Release
on:
workflow_dispatch:
inputs:
already_published_to_maven_central:
description: 'Has the release already been published to maven central?'
type: boolean
default: false

permissions:
contents: read
Expand Down Expand Up @@ -95,6 +100,7 @@ jobs:
uses: gradle/actions/setup-gradle@ac638b010cf58a27ee6c972d7336334ccaf61c96 # v4.4.1

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

- name: Build and publish gradle plugins
if: ${{ !inputs.already_published_to_maven_central }}
env:
SONATYPE_USER: ${{ secrets.SONATYPE_USER }}
SONATYPE_KEY: ${{ secrets.SONATYPE_KEY }}
Expand All @@ -114,6 +121,10 @@ jobs:
run: ./gradlew build publishPlugins publishPluginMavenPublicationToSonatypeRepository closeAndReleaseSonatypeStagingRepository
working-directory: gradle-plugins

- name: Build and publish artifacts
if: ${{ inputs.already_published_to_maven_central }}
run: ./gradlew assemble spdxSbom

- name: Collect SBOMs
run: |
mkdir sboms
Expand Down
Loading