Skip to content

Commit ae1c1b7

Browse files
committed
Fix broken deployment workflow
1 parent 36ea108 commit ae1c1b7

1 file changed

Lines changed: 9 additions & 11 deletions

File tree

.github/workflows/release.yml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -41,23 +41,21 @@ jobs:
4141
- name: Set version in Maven project
4242
run: mvn versions:set -DnewVersion=${{ github.event.inputs.versionTag }} -DprocessAllModules
4343

44-
- name: Build with Maven
45-
run: mvn -B -Psbom -Prelease verify --file pom.xml
44+
- name: Publish artefact to Maven Central
45+
run: mvn --quiet --settings $GITHUB_WORKSPACE/.github.settings.xml -Psbom -Prelease -DskipTests deploy
4646
env:
4747
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
48+
SONATYPE_CENTRAL_USERNAME: ${{ secrets.SONATYPE_CENTRAL_USERNAME }}
49+
SONATYPE_CENTRAL_PASSWORD: ${{ secrets.SONATYPE_CENTRAL_PASSWORD }}
4850

49-
# Generate provenance (SLSA attestation) for all JARs
51+
# Generate provenance (SLSA attestation) for the produced artifacts
5052
- name: Generate SLSA build provenance
5153
uses: actions/attest-build-provenance@v3
5254
with:
53-
subject-path: "**/target/*.jar"
54-
55-
- name: Publish artefact to Maven Central
56-
run: mvn --quiet --settings $GITHUB_WORKSPACE/.github.settings.xml -Prelease -DskipTests deploy
57-
env:
58-
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
59-
SONATYPE_CENTRAL_USERNAME: ${{ secrets.SONATYPE_CENTRAL_USERNAME }}
60-
SONATYPE_CENTRAL_PASSWORD: ${{ secrets.SONATYPE_CENTRAL_PASSWORD }}
55+
subject-path: |
56+
**/target/*.jar
57+
**/target/*.pom
58+
**/target/*.asc
6159
6260
- name: Update CITATION.cff (version + date)
6361
run: |

0 commit comments

Comments
 (0)