Skip to content

Commit 8859a8d

Browse files
committed
Ensure verify goal has run before attestation
1 parent 392d194 commit 8859a8d

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

.github/workflows/create-release.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,13 @@ jobs:
8080
git push origin "${TAG}"
8181
8282
- name: Build with Maven
83-
run: mvn -B package -Prelease --file pom.xml
83+
run: mvn -B verify -Prelease --file pom.xml
84+
85+
# Generate provenance (SLSA attestation) for all JARs
86+
- name: Generate SLSA build provenance
87+
uses: actions/attest-build-provenance@v1
88+
with:
89+
subject-path: "**/target/*.jar"
8490

8591
- name: Publish artefact to Maven Central
8692
run: mvn --quiet --settings $GITHUB_WORKSPACE/.github.settings.xml -Prelease -DskipTests deploy
@@ -117,9 +123,3 @@ jobs:
117123
generate_release_notes: true,
118124
prerelease: true
119125
});
120-
121-
# Generate provenance (SLSA attestation) for all JARs
122-
- name: Generate SLSA build provenance
123-
uses: actions/attest-build-provenance@v1
124-
with:
125-
subject-path: "**/target/*.jar"

0 commit comments

Comments
 (0)