Build Site and fix 1288 (#1289)

Besides a fix for #1288 the change also contains 

* a respective CI build (`mvn ... site`) to detect such problems early in the future
* a simplification for GH CI triggers (build on each push, not only master and PRs)

The latter leads to CI builds for each development change (which is a major purpose of an automatic build and helps in particular for forks/new contributors who cannot issue a automatic build by creating a PR). Having said that, the respective commit could be dropped if there is a good reason not to follow this practice.

Fixes #1288
This commit is contained in:
Gerd Aschemann
2025-04-08 10:44:14 +02:00
committed by GitHub
parent a017cd52c8
commit cb2c732201
2 changed files with 28 additions and 3 deletions

View File

@@ -20,9 +20,6 @@ name: Early Access
# trigger on push to branches and PR # trigger on push to branches and PR
on: on:
push: push:
branches:
- master
- mvnd-1.x
pull_request: pull_request:
env: env:
@@ -187,3 +184,29 @@ jobs:
with: with:
name: mvnd-${{ env.OS }}-${{ env.ARCH }} name: mvnd-${{ env.OS }}-${{ env.ARCH }}
path: dist/target/maven-mvnd-*.zip path: dist/target/maven-mvnd-*.zip
site-build:
name: 'Site build'
if: startsWith(github.event.head_commit.message, '[release] Release ') != true
runs-on: ubuntu-latest
steps:
- name: 'Checkout'
uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: ${{ env.JAVA_VERSION }}
distribution: 'temurin'
- name: 'Set up Maven'
shell: bash
run: mvn --errors --batch-mode --show-version org.apache.maven.plugins:maven-wrapper-plugin:3.3.2:wrapper "-Dmaven=4.0.0-rc-3"
- name: 'Run site build'
run: ./mvnw compile site -Dmrm=false -V -B -ntp -e -s .mvn/release-settings.xml
- name: 'Upload artifact'
uses: actions/upload-artifact@v4
with:
name: mvnd-site
path: target/site

View File

@@ -95,6 +95,8 @@
<version.plexus-xml>4.0.4</version.plexus-xml> <version.plexus-xml>4.0.4</version.plexus-xml>
<jakarta.inject.version>2.0.1</jakarta.inject.version> <jakarta.inject.version>2.0.1</jakarta.inject.version>
<version.maven-fluido-skin>2.1.0</version.maven-fluido-skin>
<!-- plugin versions a..z --> <!-- plugin versions a..z -->
<buildnumber-maven-plugin.version>3.2.1</buildnumber-maven-plugin.version> <buildnumber-maven-plugin.version>3.2.1</buildnumber-maven-plugin.version>
<groovy-maven-plugin.version>4.1.1</groovy-maven-plugin.version> <groovy-maven-plugin.version>4.1.1</groovy-maven-plugin.version>