Skip to content

Commit 36116ca

Browse files
committed
ci: add build step necessary for jreleaser when not pushing to maven central
1 parent 355a939 commit 36116ca

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,10 @@ jobs:
217217
RELEASE_VERSION=`mvn help:evaluate -Dexpression=project.version -q -DforceStdout`
218218
echo "RELEASE_VERSION=${RELEASE_VERSION}" | tee -a $GITHUB_ENV
219219
sed -i -e "s/^\:project-version\:\ .*/:project-version: ${RELEASE_VERSION}/g" README.adoc
220+
221+
- name: Build
222+
run: mvn --batch-mode --no-transfer-progress package -P release -DskipTests
223+
220224
# The sonatype maven plugin will decide the right destination depending on whether the project is SNAPSHOT or not
221225
- name: Publish to Apache Maven Central
222226
if: github.event_name == 'push' || inputs.push_maven

0 commit comments

Comments
 (0)